Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Org) predicate.Org
- func Code(v string) predicate.Org
- func CodeContains(v string) predicate.Org
- func CodeContainsFold(v string) predicate.Org
- func CodeEQ(v string) predicate.Org
- func CodeEqualFold(v string) predicate.Org
- func CodeGT(v string) predicate.Org
- func CodeGTE(v string) predicate.Org
- func CodeHasPrefix(v string) predicate.Org
- func CodeHasSuffix(v string) predicate.Org
- func CodeIn(vs ...string) predicate.Org
- func CodeIsNil() predicate.Org
- func CodeLT(v string) predicate.Org
- func CodeLTE(v string) predicate.Org
- func CodeNEQ(v string) predicate.Org
- func CodeNotIn(vs ...string) predicate.Org
- func CodeNotNil() predicate.Org
- func CountryCode(v string) predicate.Org
- func CountryCodeContains(v string) predicate.Org
- func CountryCodeContainsFold(v string) predicate.Org
- func CountryCodeEQ(v string) predicate.Org
- func CountryCodeEqualFold(v string) predicate.Org
- func CountryCodeGT(v string) predicate.Org
- func CountryCodeGTE(v string) predicate.Org
- func CountryCodeHasPrefix(v string) predicate.Org
- func CountryCodeHasSuffix(v string) predicate.Org
- func CountryCodeIn(vs ...string) predicate.Org
- func CountryCodeIsNil() predicate.Org
- func CountryCodeLT(v string) predicate.Org
- func CountryCodeLTE(v string) predicate.Org
- func CountryCodeNEQ(v string) predicate.Org
- func CountryCodeNotIn(vs ...string) predicate.Org
- func CountryCodeNotNil() predicate.Org
- func CreatedAt(v time.Time) predicate.Org
- func CreatedAtEQ(v time.Time) predicate.Org
- func CreatedAtGT(v time.Time) predicate.Org
- func CreatedAtGTE(v time.Time) predicate.Org
- func CreatedAtIn(vs ...time.Time) predicate.Org
- func CreatedAtLT(v time.Time) predicate.Org
- func CreatedAtLTE(v time.Time) predicate.Org
- func CreatedAtNEQ(v time.Time) predicate.Org
- func CreatedAtNotIn(vs ...time.Time) predicate.Org
- func CreatedBy(v int) predicate.Org
- func CreatedByEQ(v int) predicate.Org
- func CreatedByGT(v int) predicate.Org
- func CreatedByGTE(v int) predicate.Org
- func CreatedByIn(vs ...int) predicate.Org
- func CreatedByLT(v int) predicate.Org
- func CreatedByLTE(v int) predicate.Org
- func CreatedByNEQ(v int) predicate.Org
- func CreatedByNotIn(vs ...int) predicate.Org
- func DeletedAt(v time.Time) predicate.Org
- func DeletedAtEQ(v time.Time) predicate.Org
- func DeletedAtGT(v time.Time) predicate.Org
- func DeletedAtGTE(v time.Time) predicate.Org
- func DeletedAtIn(vs ...time.Time) predicate.Org
- func DeletedAtIsNil() predicate.Org
- func DeletedAtLT(v time.Time) predicate.Org
- func DeletedAtLTE(v time.Time) predicate.Org
- func DeletedAtNEQ(v time.Time) predicate.Org
- func DeletedAtNotIn(vs ...time.Time) predicate.Org
- func DeletedAtNotNil() predicate.Org
- func DisplaySort(v int32) predicate.Org
- func DisplaySortEQ(v int32) predicate.Org
- func DisplaySortGT(v int32) predicate.Org
- func DisplaySortGTE(v int32) predicate.Org
- func DisplaySortIn(vs ...int32) predicate.Org
- func DisplaySortIsNil() predicate.Org
- func DisplaySortLT(v int32) predicate.Org
- func DisplaySortLTE(v int32) predicate.Org
- func DisplaySortNEQ(v int32) predicate.Org
- func DisplaySortNotIn(vs ...int32) predicate.Org
- func DisplaySortNotNil() predicate.Org
- func Domain(v string) predicate.Org
- func DomainContains(v string) predicate.Org
- func DomainContainsFold(v string) predicate.Org
- func DomainEQ(v string) predicate.Org
- func DomainEqualFold(v string) predicate.Org
- func DomainGT(v string) predicate.Org
- func DomainGTE(v string) predicate.Org
- func DomainHasPrefix(v string) predicate.Org
- func DomainHasSuffix(v string) predicate.Org
- func DomainIn(vs ...string) predicate.Org
- func DomainIsNil() predicate.Org
- func DomainLT(v string) predicate.Org
- func DomainLTE(v string) predicate.Org
- func DomainNEQ(v string) predicate.Org
- func DomainNotIn(vs ...string) predicate.Org
- func DomainNotNil() predicate.Org
- func HasApps() predicate.Org
- func HasAppsWith(preds ...predicate.App) predicate.Org
- func HasChildren() predicate.Org
- func HasChildrenWith(preds ...predicate.Org) predicate.Org
- func HasFileIdentities() predicate.Org
- func HasFileIdentitiesWith(preds ...predicate.FileIdentity) predicate.Org
- func HasOrgApp() predicate.Org
- func HasOrgAppWith(preds ...predicate.OrgApp) predicate.Org
- func HasOrgUser() predicate.Org
- func HasOrgUserWith(preds ...predicate.OrgUser) predicate.Org
- func HasOwner() predicate.Org
- func HasOwnerWith(preds ...predicate.User) predicate.Org
- func HasParent() predicate.Org
- func HasParentWith(preds ...predicate.Org) predicate.Org
- func HasPermissions() predicate.Org
- func HasPermissionsWith(preds ...predicate.Permission) predicate.Org
- func HasPolicies() predicate.Org
- func HasPoliciesWith(preds ...predicate.OrgPolicy) predicate.Org
- func HasRolesAndGroups() predicate.Org
- func HasRolesAndGroupsWith(preds ...predicate.OrgRole) predicate.Org
- func HasUsers() predicate.Org
- func HasUsersWith(preds ...predicate.User) predicate.Org
- func ID(id int) predicate.Org
- func IDEQ(id int) predicate.Org
- func IDGT(id int) predicate.Org
- func IDGTE(id int) predicate.Org
- func IDIn(ids ...int) predicate.Org
- func IDLT(id int) predicate.Org
- func IDLTE(id int) predicate.Org
- func IDNEQ(id int) predicate.Org
- func IDNotIn(ids ...int) predicate.Org
- func KindEQ(v Kind) predicate.Org
- func KindIn(vs ...Kind) predicate.Org
- func KindNEQ(v Kind) predicate.Org
- func KindNotIn(vs ...Kind) predicate.Org
- func KindValidator(k Kind) error
- func Name(v string) predicate.Org
- func NameContains(v string) predicate.Org
- func NameContainsFold(v string) predicate.Org
- func NameEQ(v string) predicate.Org
- func NameEqualFold(v string) predicate.Org
- func NameGT(v string) predicate.Org
- func NameGTE(v string) predicate.Org
- func NameHasPrefix(v string) predicate.Org
- func NameHasSuffix(v string) predicate.Org
- func NameIn(vs ...string) predicate.Org
- func NameLT(v string) predicate.Org
- func NameLTE(v string) predicate.Org
- func NameNEQ(v string) predicate.Org
- func NameNotIn(vs ...string) predicate.Org
- func Not(p predicate.Org) predicate.Org
- func Or(predicates ...predicate.Org) predicate.Org
- func OwnerID(v int) predicate.Org
- func OwnerIDEQ(v int) predicate.Org
- func OwnerIDIn(vs ...int) predicate.Org
- func OwnerIDIsNil() predicate.Org
- func OwnerIDNEQ(v int) predicate.Org
- func OwnerIDNotIn(vs ...int) predicate.Org
- func OwnerIDNotNil() predicate.Org
- func ParentID(v int) predicate.Org
- func ParentIDEQ(v int) predicate.Org
- func ParentIDIn(vs ...int) predicate.Org
- func ParentIDNEQ(v int) predicate.Org
- func ParentIDNotIn(vs ...int) predicate.Org
- func Path(v string) predicate.Org
- func PathContains(v string) predicate.Org
- func PathContainsFold(v string) predicate.Org
- func PathEQ(v string) predicate.Org
- func PathEqualFold(v string) predicate.Org
- func PathGT(v string) predicate.Org
- func PathGTE(v string) predicate.Org
- func PathHasPrefix(v string) predicate.Org
- func PathHasSuffix(v string) predicate.Org
- func PathIn(vs ...string) predicate.Org
- func PathIsNil() predicate.Org
- func PathLT(v string) predicate.Org
- func PathLTE(v string) predicate.Org
- func PathNEQ(v string) predicate.Org
- func PathNotIn(vs ...string) predicate.Org
- func PathNotNil() predicate.Org
- func Profile(v string) predicate.Org
- func ProfileContains(v string) predicate.Org
- func ProfileContainsFold(v string) predicate.Org
- func ProfileEQ(v string) predicate.Org
- func ProfileEqualFold(v string) predicate.Org
- func ProfileGT(v string) predicate.Org
- func ProfileGTE(v string) predicate.Org
- func ProfileHasPrefix(v string) predicate.Org
- func ProfileHasSuffix(v string) predicate.Org
- func ProfileIn(vs ...string) predicate.Org
- func ProfileIsNil() predicate.Org
- func ProfileLT(v string) predicate.Org
- func ProfileLTE(v string) predicate.Org
- func ProfileNEQ(v string) predicate.Org
- func ProfileNotIn(vs ...string) predicate.Org
- func ProfileNotNil() predicate.Org
- func StatusEQ(v typex.SimpleStatus) predicate.Org
- func StatusIn(vs ...typex.SimpleStatus) predicate.Org
- func StatusIsNil() predicate.Org
- func StatusNEQ(v typex.SimpleStatus) predicate.Org
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.Org
- func StatusNotNil() predicate.Org
- func StatusValidator(s typex.SimpleStatus) error
- func Timezone(v string) predicate.Org
- func TimezoneContains(v string) predicate.Org
- func TimezoneContainsFold(v string) predicate.Org
- func TimezoneEQ(v string) predicate.Org
- func TimezoneEqualFold(v string) predicate.Org
- func TimezoneGT(v string) predicate.Org
- func TimezoneGTE(v string) predicate.Org
- func TimezoneHasPrefix(v string) predicate.Org
- func TimezoneHasSuffix(v string) predicate.Org
- func TimezoneIn(vs ...string) predicate.Org
- func TimezoneIsNil() predicate.Org
- func TimezoneLT(v string) predicate.Org
- func TimezoneLTE(v string) predicate.Org
- func TimezoneNEQ(v string) predicate.Org
- func TimezoneNotIn(vs ...string) predicate.Org
- func TimezoneNotNil() predicate.Org
- func UpdatedAt(v time.Time) predicate.Org
- func UpdatedAtEQ(v time.Time) predicate.Org
- func UpdatedAtGT(v time.Time) predicate.Org
- func UpdatedAtGTE(v time.Time) predicate.Org
- func UpdatedAtIn(vs ...time.Time) predicate.Org
- func UpdatedAtIsNil() predicate.Org
- func UpdatedAtLT(v time.Time) predicate.Org
- func UpdatedAtLTE(v time.Time) predicate.Org
- func UpdatedAtNEQ(v time.Time) predicate.Org
- func UpdatedAtNotIn(vs ...time.Time) predicate.Org
- func UpdatedAtNotNil() predicate.Org
- func UpdatedBy(v int) predicate.Org
- func UpdatedByEQ(v int) predicate.Org
- func UpdatedByGT(v int) predicate.Org
- func UpdatedByGTE(v int) predicate.Org
- func UpdatedByIn(vs ...int) predicate.Org
- func UpdatedByIsNil() predicate.Org
- func UpdatedByLT(v int) predicate.Org
- func UpdatedByLTE(v int) predicate.Org
- func UpdatedByNEQ(v int) predicate.Org
- func UpdatedByNotIn(vs ...int) predicate.Org
- func UpdatedByNotNil() predicate.Org
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByApps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAppsCount(opts ...sql.OrderTermOption) OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCountryCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisplaySort(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByFileIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFileIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgAppCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgUserCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByProfile(opts ...sql.OrderTermOption) OrderOption
- func ByRolesAndGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesAndGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTimezone(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultKind = KindOrganization
KindOrganization is the default value of the Kind enum.
const DefaultStatus typex.SimpleStatus = "active"
Variables ¶
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"} )
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"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldDeletedAt, FieldOwnerID, FieldKind, FieldParentID, FieldDomain, FieldCode, FieldName, FieldProfile, FieldStatus, FieldPath, FieldDisplaySort, FieldCountryCode, FieldTimezone, }
Columns holds all SQL columns for org fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeNotNil ¶
CodeNotNil applies the NotNil predicate on the "code" field.
func CountryCode ¶
CountryCode applies equality check predicate on the "country_code" field. It's identical to CountryCodeEQ.
func CountryCodeContains ¶
CountryCodeContains applies the Contains predicate on the "country_code" field.
func CountryCodeContainsFold ¶
CountryCodeContainsFold applies the ContainsFold predicate on the "country_code" field.
func CountryCodeEQ ¶
CountryCodeEQ applies the EQ predicate on the "country_code" field.
func CountryCodeEqualFold ¶
CountryCodeEqualFold applies the EqualFold predicate on the "country_code" field.
func CountryCodeGT ¶
CountryCodeGT applies the GT predicate on the "country_code" field.
func CountryCodeGTE ¶
CountryCodeGTE applies the GTE predicate on the "country_code" field.
func CountryCodeHasPrefix ¶
CountryCodeHasPrefix applies the HasPrefix predicate on the "country_code" field.
func CountryCodeHasSuffix ¶
CountryCodeHasSuffix applies the HasSuffix predicate on the "country_code" field.
func CountryCodeIn ¶
CountryCodeIn applies the In predicate on the "country_code" field.
func CountryCodeIsNil ¶
CountryCodeIsNil applies the IsNil predicate on the "country_code" field.
func CountryCodeLT ¶
CountryCodeLT applies the LT predicate on the "country_code" field.
func CountryCodeLTE ¶
CountryCodeLTE applies the LTE predicate on the "country_code" field.
func CountryCodeNEQ ¶
CountryCodeNEQ applies the NEQ predicate on the "country_code" field.
func CountryCodeNotIn ¶
CountryCodeNotIn applies the NotIn predicate on the "country_code" field.
func CountryCodeNotNil ¶
CountryCodeNotNil applies the NotNil predicate on the "country_code" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DisplaySort ¶
DisplaySort applies equality check predicate on the "display_sort" field. It's identical to DisplaySortEQ.
func DisplaySortEQ ¶
DisplaySortEQ applies the EQ predicate on the "display_sort" field.
func DisplaySortGT ¶
DisplaySortGT applies the GT predicate on the "display_sort" field.
func DisplaySortGTE ¶
DisplaySortGTE applies the GTE predicate on the "display_sort" field.
func DisplaySortIn ¶
DisplaySortIn applies the In predicate on the "display_sort" field.
func DisplaySortIsNil ¶
DisplaySortIsNil applies the IsNil predicate on the "display_sort" field.
func DisplaySortLT ¶
DisplaySortLT applies the LT predicate on the "display_sort" field.
func DisplaySortLTE ¶
DisplaySortLTE applies the LTE predicate on the "display_sort" field.
func DisplaySortNEQ ¶
DisplaySortNEQ applies the NEQ predicate on the "display_sort" field.
func DisplaySortNotIn ¶
DisplaySortNotIn applies the NotIn predicate on the "display_sort" field.
func DisplaySortNotNil ¶
DisplaySortNotNil applies the NotNil predicate on the "display_sort" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainIsNil ¶
DomainIsNil applies the IsNil predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func DomainNotNil ¶
DomainNotNil applies the NotNil predicate on the "domain" field.
func HasAppsWith ¶
HasAppsWith applies the HasEdge predicate on the "apps" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasFileIdentities ¶
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 HasOrgAppWith ¶
HasOrgAppWith applies the HasEdge predicate on the "org_app" edge with a given conditions (other predicates).
func HasOrgUser ¶
HasOrgUser applies the HasEdge predicate on the "org_user" edge.
func HasOrgUserWith ¶
HasOrgUserWith applies the HasEdge predicate on the "org_user" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasPermissions ¶
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 ¶
HasPolicies applies the HasEdge predicate on the "policies" edge.
func HasPoliciesWith ¶
HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).
func HasRolesAndGroups ¶
HasRolesAndGroups applies the HasEdge predicate on the "roles_and_groups" edge.
func HasRolesAndGroupsWith ¶
HasRolesAndGroupsWith applies the HasEdge predicate on the "roles_and_groups" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathNotNil ¶
PathNotNil applies the NotNil predicate on the "path" field.
func Profile ¶
Profile applies equality check predicate on the "profile" field. It's identical to ProfileEQ.
func ProfileContains ¶
ProfileContains applies the Contains predicate on the "profile" field.
func ProfileContainsFold ¶
ProfileContainsFold applies the ContainsFold predicate on the "profile" field.
func ProfileEqualFold ¶
ProfileEqualFold applies the EqualFold predicate on the "profile" field.
func ProfileGTE ¶
ProfileGTE applies the GTE predicate on the "profile" field.
func ProfileHasPrefix ¶
ProfileHasPrefix applies the HasPrefix predicate on the "profile" field.
func ProfileHasSuffix ¶
ProfileHasSuffix applies the HasSuffix predicate on the "profile" field.
func ProfileIsNil ¶
ProfileIsNil applies the IsNil predicate on the "profile" field.
func ProfileLTE ¶
ProfileLTE applies the LTE predicate on the "profile" field.
func ProfileNEQ ¶
ProfileNEQ applies the NEQ predicate on the "profile" field.
func ProfileNotIn ¶
ProfileNotIn applies the NotIn predicate on the "profile" field.
func ProfileNotNil ¶
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 ¶
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 ¶
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 ¶
Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.
func TimezoneContains ¶
TimezoneContains applies the Contains predicate on the "timezone" field.
func TimezoneContainsFold ¶
TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.
func TimezoneEQ ¶
TimezoneEQ applies the EQ predicate on the "timezone" field.
func TimezoneEqualFold ¶
TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.
func TimezoneGT ¶
TimezoneGT applies the GT predicate on the "timezone" field.
func TimezoneGTE ¶
TimezoneGTE applies the GTE predicate on the "timezone" field.
func TimezoneHasPrefix ¶
TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.
func TimezoneHasSuffix ¶
TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.
func TimezoneIn ¶
TimezoneIn applies the In predicate on the "timezone" field.
func TimezoneIsNil ¶
TimezoneIsNil applies the IsNil predicate on the "timezone" field.
func TimezoneLT ¶
TimezoneLT applies the LT predicate on the "timezone" field.
func TimezoneLTE ¶
TimezoneLTE applies the LTE predicate on the "timezone" field.
func TimezoneNEQ ¶
TimezoneNEQ applies the NEQ predicate on the "timezone" field.
func TimezoneNotIn ¶
TimezoneNotIn applies the NotIn predicate on the "timezone" field.
func TimezoneNotNil ¶
TimezoneNotNil applies the NotNil predicate on the "timezone" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
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.
func (Kind) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Kind) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
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.