org

package
v0.0.0-...-04b2c92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the org type in the database.
	Label = "org"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldProfile holds the string denoting the profile field in the database.
	FieldProfile = "profile"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldDisplaySort holds the string denoting the display_sort field in the database.
	FieldDisplaySort = "display_sort"
	// FieldCountryCode holds the string denoting the country_code field in the database.
	FieldCountryCode = "country_code"
	// FieldTimezone holds the string denoting the timezone field in the database.
	FieldTimezone = "timezone"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeRolesAndGroups holds the string denoting the roles_and_groups edge name in mutations.
	EdgeRolesAndGroups = "roles_and_groups"
	// EdgePermissions holds the string denoting the permissions edge name in mutations.
	EdgePermissions = "permissions"
	// EdgePolicies holds the string denoting the policies edge name in mutations.
	EdgePolicies = "policies"
	// EdgeApps holds the string denoting the apps edge name in mutations.
	EdgeApps = "apps"
	// EdgeFileIdentities holds the string denoting the file_identities edge name in mutations.
	EdgeFileIdentities = "file_identities"
	// EdgeOrgUser holds the string denoting the org_user edge name in mutations.
	EdgeOrgUser = "org_user"
	// EdgeOrgApp holds the string denoting the org_app edge name in mutations.
	EdgeOrgApp = "org_app"
	// Table holds the table name of the org in the database.
	Table = "org"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "org"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_id"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "org"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "parent_id"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "org"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "user"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	UsersTable = "org_user"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "user"
	// RolesAndGroupsTable is the table that holds the roles_and_groups relation/edge.
	RolesAndGroupsTable = "org_role"
	// RolesAndGroupsInverseTable is the table name for the OrgRole entity.
	// It exists in this package in order to avoid circular dependency with the "orgrole" package.
	RolesAndGroupsInverseTable = "org_role"
	// RolesAndGroupsColumn is the table column denoting the roles_and_groups relation/edge.
	RolesAndGroupsColumn = "org_id"
	// PermissionsTable is the table that holds the permissions relation/edge.
	PermissionsTable = "permission"
	// PermissionsInverseTable is the table name for the Permission entity.
	// It exists in this package in order to avoid circular dependency with the "permission" package.
	PermissionsInverseTable = "permission"
	// PermissionsColumn is the table column denoting the permissions relation/edge.
	PermissionsColumn = "org_id"
	// PoliciesTable is the table that holds the policies relation/edge.
	PoliciesTable = "org_policy"
	// PoliciesInverseTable is the table name for the OrgPolicy entity.
	// It exists in this package in order to avoid circular dependency with the "orgpolicy" package.
	PoliciesInverseTable = "org_policy"
	// PoliciesColumn is the table column denoting the policies relation/edge.
	PoliciesColumn = "org_id"
	// AppsTable is the table that holds the apps relation/edge. The primary key declared below.
	AppsTable = "org_app"
	// AppsInverseTable is the table name for the App entity.
	// It exists in this package in order to avoid circular dependency with the "app" package.
	AppsInverseTable = "app"
	// FileIdentitiesTable is the table that holds the file_identities relation/edge.
	FileIdentitiesTable = "file_identity"
	// FileIdentitiesInverseTable is the table name for the FileIdentity entity.
	// It exists in this package in order to avoid circular dependency with the "fileidentity" package.
	FileIdentitiesInverseTable = "file_identity"
	// FileIdentitiesColumn is the table column denoting the file_identities relation/edge.
	FileIdentitiesColumn = "tenant_id"
	// OrgUserTable is the table that holds the org_user relation/edge.
	OrgUserTable = "org_user"
	// OrgUserInverseTable is the table name for the OrgUser entity.
	// It exists in this package in order to avoid circular dependency with the "orguser" package.
	OrgUserInverseTable = "org_user"
	// OrgUserColumn is the table column denoting the org_user relation/edge.
	OrgUserColumn = "org_id"
	// OrgAppTable is the table that holds the org_app relation/edge.
	OrgAppTable = "org_app"
	// OrgAppInverseTable is the table name for the OrgApp entity.
	// It exists in this package in order to avoid circular dependency with the "orgapp" package.
	OrgAppInverseTable = "org_app"
	// OrgAppColumn is the table column denoting the org_app relation/edge.
	OrgAppColumn = "org_id"
)
View Source
const DefaultKind = KindOrganization

KindOrganization is the default value of the Kind enum.

View Source
const DefaultStatus typex.SimpleStatus = "active"

Variables

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"org_id", "user_id"}
	// AppsPrimaryKey and AppsColumn2 are the table columns denoting the
	// primary key for the apps relation (M2M).
	AppsPrimaryKey = []string{"org_id", "app_id"}
)
View Source
var (
	Hooks        [7]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID int
	// DomainValidator is a validator for the "domain" field. It is called by the builders before save.
	DomainValidator func(string) error
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// CountryCodeValidator is a validator for the "country_code" field. It is called by the builders before save.
	CountryCodeValidator func(string) error
	// TimezoneValidator is a validator for the "timezone" field. It is called by the builders before save.
	TimezoneValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for org fields.

Functions

func And

func And(predicates ...predicate.Org) predicate.Org

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.Org

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Org

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Org

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Org

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Org

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Org

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Org

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Org

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Org

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Org

CodeIn applies the In predicate on the "code" field.

func CodeIsNil

func CodeIsNil() predicate.Org

CodeIsNil applies the IsNil predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Org

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Org

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Org

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Org

CodeNotIn applies the NotIn predicate on the "code" field.

func CodeNotNil

func CodeNotNil() predicate.Org

CodeNotNil applies the NotNil predicate on the "code" field.

func CountryCode

func CountryCode(v string) predicate.Org

CountryCode applies equality check predicate on the "country_code" field. It's identical to CountryCodeEQ.

func CountryCodeContains

func CountryCodeContains(v string) predicate.Org

CountryCodeContains applies the Contains predicate on the "country_code" field.

func CountryCodeContainsFold

func CountryCodeContainsFold(v string) predicate.Org

CountryCodeContainsFold applies the ContainsFold predicate on the "country_code" field.

func CountryCodeEQ

func CountryCodeEQ(v string) predicate.Org

CountryCodeEQ applies the EQ predicate on the "country_code" field.

func CountryCodeEqualFold

func CountryCodeEqualFold(v string) predicate.Org

CountryCodeEqualFold applies the EqualFold predicate on the "country_code" field.

func CountryCodeGT

func CountryCodeGT(v string) predicate.Org

CountryCodeGT applies the GT predicate on the "country_code" field.

func CountryCodeGTE

func CountryCodeGTE(v string) predicate.Org

CountryCodeGTE applies the GTE predicate on the "country_code" field.

func CountryCodeHasPrefix

func CountryCodeHasPrefix(v string) predicate.Org

CountryCodeHasPrefix applies the HasPrefix predicate on the "country_code" field.

func CountryCodeHasSuffix

func CountryCodeHasSuffix(v string) predicate.Org

CountryCodeHasSuffix applies the HasSuffix predicate on the "country_code" field.

func CountryCodeIn

func CountryCodeIn(vs ...string) predicate.Org

CountryCodeIn applies the In predicate on the "country_code" field.

func CountryCodeIsNil

func CountryCodeIsNil() predicate.Org

CountryCodeIsNil applies the IsNil predicate on the "country_code" field.

func CountryCodeLT

func CountryCodeLT(v string) predicate.Org

CountryCodeLT applies the LT predicate on the "country_code" field.

func CountryCodeLTE

func CountryCodeLTE(v string) predicate.Org

CountryCodeLTE applies the LTE predicate on the "country_code" field.

func CountryCodeNEQ

func CountryCodeNEQ(v string) predicate.Org

CountryCodeNEQ applies the NEQ predicate on the "country_code" field.

func CountryCodeNotIn

func CountryCodeNotIn(vs ...string) predicate.Org

CountryCodeNotIn applies the NotIn predicate on the "country_code" field.

func CountryCodeNotNil

func CountryCodeNotNil() predicate.Org

CountryCodeNotNil applies the NotNil predicate on the "country_code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Org

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Org

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Org

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Org

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Org

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Org

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Org

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Org

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Org

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int) predicate.Org

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.Org

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.Org

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.Org

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.Org

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.Org

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.Org

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.Org

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.Org

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Org

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Org

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Org

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Org

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Org

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Org

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Org

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Org

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Org

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Org

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Org

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DisplaySort

func DisplaySort(v int32) predicate.Org

DisplaySort applies equality check predicate on the "display_sort" field. It's identical to DisplaySortEQ.

func DisplaySortEQ

func DisplaySortEQ(v int32) predicate.Org

DisplaySortEQ applies the EQ predicate on the "display_sort" field.

func DisplaySortGT

func DisplaySortGT(v int32) predicate.Org

DisplaySortGT applies the GT predicate on the "display_sort" field.

func DisplaySortGTE

func DisplaySortGTE(v int32) predicate.Org

DisplaySortGTE applies the GTE predicate on the "display_sort" field.

func DisplaySortIn

func DisplaySortIn(vs ...int32) predicate.Org

DisplaySortIn applies the In predicate on the "display_sort" field.

func DisplaySortIsNil

func DisplaySortIsNil() predicate.Org

DisplaySortIsNil applies the IsNil predicate on the "display_sort" field.

func DisplaySortLT

func DisplaySortLT(v int32) predicate.Org

DisplaySortLT applies the LT predicate on the "display_sort" field.

func DisplaySortLTE

func DisplaySortLTE(v int32) predicate.Org

DisplaySortLTE applies the LTE predicate on the "display_sort" field.

func DisplaySortNEQ

func DisplaySortNEQ(v int32) predicate.Org

DisplaySortNEQ applies the NEQ predicate on the "display_sort" field.

func DisplaySortNotIn

func DisplaySortNotIn(vs ...int32) predicate.Org

DisplaySortNotIn applies the NotIn predicate on the "display_sort" field.

func DisplaySortNotNil

func DisplaySortNotNil() predicate.Org

DisplaySortNotNil applies the NotNil predicate on the "display_sort" field.

func Domain

func Domain(v string) predicate.Org

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Org

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Org

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Org

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Org

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Org

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Org

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Org

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Org

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Org

DomainIn applies the In predicate on the "domain" field.

func DomainIsNil

func DomainIsNil() predicate.Org

DomainIsNil applies the IsNil predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Org

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Org

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Org

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Org

DomainNotIn applies the NotIn predicate on the "domain" field.

func DomainNotNil

func DomainNotNil() predicate.Org

DomainNotNil applies the NotNil predicate on the "domain" field.

func HasApps

func HasApps() predicate.Org

HasApps applies the HasEdge predicate on the "apps" edge.

func HasAppsWith

func HasAppsWith(preds ...predicate.App) predicate.Org

HasAppsWith applies the HasEdge predicate on the "apps" edge with a given conditions (other predicates).

func HasChildren

func HasChildren() predicate.Org

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Org) predicate.Org

HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).

func HasFileIdentities

func HasFileIdentities() predicate.Org

HasFileIdentities applies the HasEdge predicate on the "file_identities" edge.

func HasFileIdentitiesWith

func HasFileIdentitiesWith(preds ...predicate.FileIdentity) predicate.Org

HasFileIdentitiesWith applies the HasEdge predicate on the "file_identities" edge with a given conditions (other predicates).

func HasOrgApp

func HasOrgApp() predicate.Org

HasOrgApp applies the HasEdge predicate on the "org_app" edge.

func HasOrgAppWith

func HasOrgAppWith(preds ...predicate.OrgApp) predicate.Org

HasOrgAppWith applies the HasEdge predicate on the "org_app" edge with a given conditions (other predicates).

func HasOrgUser

func HasOrgUser() predicate.Org

HasOrgUser applies the HasEdge predicate on the "org_user" edge.

func HasOrgUserWith

func HasOrgUserWith(preds ...predicate.OrgUser) predicate.Org

HasOrgUserWith applies the HasEdge predicate on the "org_user" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.Org

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Org

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasParent

func HasParent() predicate.Org

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Org) predicate.Org

HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).

func HasPermissions

func HasPermissions() predicate.Org

HasPermissions applies the HasEdge predicate on the "permissions" edge.

func HasPermissionsWith

func HasPermissionsWith(preds ...predicate.Permission) predicate.Org

HasPermissionsWith applies the HasEdge predicate on the "permissions" edge with a given conditions (other predicates).

func HasPolicies

func HasPolicies() predicate.Org

HasPolicies applies the HasEdge predicate on the "policies" edge.

func HasPoliciesWith

func HasPoliciesWith(preds ...predicate.OrgPolicy) predicate.Org

HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).

func HasRolesAndGroups

func HasRolesAndGroups() predicate.Org

HasRolesAndGroups applies the HasEdge predicate on the "roles_and_groups" edge.

func HasRolesAndGroupsWith

func HasRolesAndGroupsWith(preds ...predicate.OrgRole) predicate.Org

HasRolesAndGroupsWith applies the HasEdge predicate on the "roles_and_groups" edge with a given conditions (other predicates).

func HasUsers

func HasUsers() predicate.Org

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Org

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Org

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Org

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Org

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Org

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Org

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Org

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Org

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Org

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Org

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.Org

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Org

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Org

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Org

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

func Name

func Name(v string) predicate.Org

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Org

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Org

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Org

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Org

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Org

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Org

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Org

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Org

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Org

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Org

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Org

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Org

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Org

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.Org) predicate.Org

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Org) predicate.Org

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.Org

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.Org

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...int) predicate.Org

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Org

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.Org

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int) predicate.Org

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Org

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func ParentID

func ParentID(v int) predicate.Org

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v int) predicate.Org

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int) predicate.Org

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.Org

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...int) predicate.Org

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func Path

func Path(v string) predicate.Org

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Org

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Org

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Org

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Org

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Org

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Org

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Org

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Org

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Org

PathIn applies the In predicate on the "path" field.

func PathIsNil

func PathIsNil() predicate.Org

PathIsNil applies the IsNil predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Org

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Org

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Org

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Org

PathNotIn applies the NotIn predicate on the "path" field.

func PathNotNil

func PathNotNil() predicate.Org

PathNotNil applies the NotNil predicate on the "path" field.

func Profile

func Profile(v string) predicate.Org

Profile applies equality check predicate on the "profile" field. It's identical to ProfileEQ.

func ProfileContains

func ProfileContains(v string) predicate.Org

ProfileContains applies the Contains predicate on the "profile" field.

func ProfileContainsFold

func ProfileContainsFold(v string) predicate.Org

ProfileContainsFold applies the ContainsFold predicate on the "profile" field.

func ProfileEQ

func ProfileEQ(v string) predicate.Org

ProfileEQ applies the EQ predicate on the "profile" field.

func ProfileEqualFold

func ProfileEqualFold(v string) predicate.Org

ProfileEqualFold applies the EqualFold predicate on the "profile" field.

func ProfileGT

func ProfileGT(v string) predicate.Org

ProfileGT applies the GT predicate on the "profile" field.

func ProfileGTE

func ProfileGTE(v string) predicate.Org

ProfileGTE applies the GTE predicate on the "profile" field.

func ProfileHasPrefix

func ProfileHasPrefix(v string) predicate.Org

ProfileHasPrefix applies the HasPrefix predicate on the "profile" field.

func ProfileHasSuffix

func ProfileHasSuffix(v string) predicate.Org

ProfileHasSuffix applies the HasSuffix predicate on the "profile" field.

func ProfileIn

func ProfileIn(vs ...string) predicate.Org

ProfileIn applies the In predicate on the "profile" field.

func ProfileIsNil

func ProfileIsNil() predicate.Org

ProfileIsNil applies the IsNil predicate on the "profile" field.

func ProfileLT

func ProfileLT(v string) predicate.Org

ProfileLT applies the LT predicate on the "profile" field.

func ProfileLTE

func ProfileLTE(v string) predicate.Org

ProfileLTE applies the LTE predicate on the "profile" field.

func ProfileNEQ

func ProfileNEQ(v string) predicate.Org

ProfileNEQ applies the NEQ predicate on the "profile" field.

func ProfileNotIn

func ProfileNotIn(vs ...string) predicate.Org

ProfileNotIn applies the NotIn predicate on the "profile" field.

func ProfileNotNil

func ProfileNotNil() predicate.Org

ProfileNotNil applies the NotNil predicate on the "profile" field.

func StatusEQ

func StatusEQ(v typex.SimpleStatus) predicate.Org

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...typex.SimpleStatus) predicate.Org

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Org

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v typex.SimpleStatus) predicate.Org

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...typex.SimpleStatus) predicate.Org

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Org

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s typex.SimpleStatus) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func Timezone

func Timezone(v string) predicate.Org

Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.

func TimezoneContains

func TimezoneContains(v string) predicate.Org

TimezoneContains applies the Contains predicate on the "timezone" field.

func TimezoneContainsFold

func TimezoneContainsFold(v string) predicate.Org

TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.

func TimezoneEQ

func TimezoneEQ(v string) predicate.Org

TimezoneEQ applies the EQ predicate on the "timezone" field.

func TimezoneEqualFold

func TimezoneEqualFold(v string) predicate.Org

TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.

func TimezoneGT

func TimezoneGT(v string) predicate.Org

TimezoneGT applies the GT predicate on the "timezone" field.

func TimezoneGTE

func TimezoneGTE(v string) predicate.Org

TimezoneGTE applies the GTE predicate on the "timezone" field.

func TimezoneHasPrefix

func TimezoneHasPrefix(v string) predicate.Org

TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.

func TimezoneHasSuffix

func TimezoneHasSuffix(v string) predicate.Org

TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.

func TimezoneIn

func TimezoneIn(vs ...string) predicate.Org

TimezoneIn applies the In predicate on the "timezone" field.

func TimezoneIsNil

func TimezoneIsNil() predicate.Org

TimezoneIsNil applies the IsNil predicate on the "timezone" field.

func TimezoneLT

func TimezoneLT(v string) predicate.Org

TimezoneLT applies the LT predicate on the "timezone" field.

func TimezoneLTE

func TimezoneLTE(v string) predicate.Org

TimezoneLTE applies the LTE predicate on the "timezone" field.

func TimezoneNEQ

func TimezoneNEQ(v string) predicate.Org

TimezoneNEQ applies the NEQ predicate on the "timezone" field.

func TimezoneNotIn

func TimezoneNotIn(vs ...string) predicate.Org

TimezoneNotIn applies the NotIn predicate on the "timezone" field.

func TimezoneNotNil

func TimezoneNotNil() predicate.Org

TimezoneNotNil applies the NotNil predicate on the "timezone" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Org

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Org

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Org

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Org

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Org

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Org

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Org

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Org

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Org

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Org

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Org

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.Org

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.Org

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.Org

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.Org

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.Org

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Org

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.Org

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.Org

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.Org

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.Org

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Org

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindRoot         Kind = "root"
	KindOrganization Kind = "org"
)

Kind values.

func (Kind) MarshalGQL

func (e Kind) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Kind) String

func (k Kind) String() string

func (*Kind) UnmarshalGQL

func (e *Kind) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Org queries.

func ByApps

func ByApps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByApps orders the results by apps terms.

func ByAppsCount

func ByAppsCount(opts ...sql.OrderTermOption) OrderOption

ByAppsCount orders the results by apps count.

func ByChildren

func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByChildren orders the results by children terms.

func ByChildrenCount

func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption

ByChildrenCount orders the results by children count.

func ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code field.

func ByCountryCode

func ByCountryCode(opts ...sql.OrderTermOption) OrderOption

ByCountryCode orders the results by the country_code field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDisplaySort

func ByDisplaySort(opts ...sql.OrderTermOption) OrderOption

ByDisplaySort orders the results by the display_sort field.

func ByDomain

func ByDomain(opts ...sql.OrderTermOption) OrderOption

ByDomain orders the results by the domain field.

func ByFileIdentities

func ByFileIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFileIdentities orders the results by file_identities terms.

func ByFileIdentitiesCount

func ByFileIdentitiesCount(opts ...sql.OrderTermOption) OrderOption

ByFileIdentitiesCount orders the results by file_identities count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKind

func ByKind(opts ...sql.OrderTermOption) OrderOption

ByKind orders the results by the kind field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOrgApp

func ByOrgApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgApp orders the results by org_app terms.

func ByOrgAppCount

func ByOrgAppCount(opts ...sql.OrderTermOption) OrderOption

ByOrgAppCount orders the results by org_app count.

func ByOrgUser

func ByOrgUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgUser orders the results by org_user terms.

func ByOrgUserCount

func ByOrgUserCount(opts ...sql.OrderTermOption) OrderOption

ByOrgUserCount orders the results by org_user count.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerID

func ByOwnerID(opts ...sql.OrderTermOption) OrderOption

ByOwnerID orders the results by the owner_id field.

func ByParentField

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func ByParentID

func ByParentID(opts ...sql.OrderTermOption) OrderOption

ByParentID orders the results by the parent_id field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByPermissions

func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPermissions orders the results by permissions terms.

func ByPermissionsCount

func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption

ByPermissionsCount orders the results by permissions count.

func ByPolicies

func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPolicies orders the results by policies terms.

func ByPoliciesCount

func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption

ByPoliciesCount orders the results by policies count.

func ByProfile

func ByProfile(opts ...sql.OrderTermOption) OrderOption

ByProfile orders the results by the profile field.

func ByRolesAndGroups

func ByRolesAndGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRolesAndGroups orders the results by roles_and_groups terms.

func ByRolesAndGroupsCount

func ByRolesAndGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByRolesAndGroupsCount orders the results by roles_and_groups count.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTimezone

func ByTimezone(opts ...sql.OrderTermOption) OrderOption

ByTimezone orders the results by the timezone field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

func ByUsers

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount

func ByUsersCount(opts ...sql.OrderTermOption) OrderOption

ByUsersCount orders the results by users count.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL