Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func ArchivedAt(v time.Time) predicate.Role
- func ArchivedAtEQ(v time.Time) predicate.Role
- func ArchivedAtGT(v time.Time) predicate.Role
- func ArchivedAtGTE(v time.Time) predicate.Role
- func ArchivedAtIn(vs ...time.Time) predicate.Role
- func ArchivedAtIsNil() predicate.Role
- func ArchivedAtLT(v time.Time) predicate.Role
- func ArchivedAtLTE(v time.Time) predicate.Role
- func ArchivedAtNEQ(v time.Time) predicate.Role
- func ArchivedAtNotIn(vs ...time.Time) predicate.Role
- func ArchivedAtNotNil() predicate.Role
- func Code(v string) predicate.Role
- func CodeContains(v string) predicate.Role
- func CodeContainsFold(v string) predicate.Role
- func CodeEQ(v string) predicate.Role
- func CodeEqualFold(v string) predicate.Role
- func CodeGT(v string) predicate.Role
- func CodeGTE(v string) predicate.Role
- func CodeHasPrefix(v string) predicate.Role
- func CodeHasSuffix(v string) predicate.Role
- func CodeIn(vs ...string) predicate.Role
- func CodeLT(v string) predicate.Role
- func CodeLTE(v string) predicate.Role
- func CodeNEQ(v string) predicate.Role
- func CodeNotIn(vs ...string) predicate.Role
- func CreatedAt(v time.Time) predicate.Role
- func CreatedAtEQ(v time.Time) predicate.Role
- func CreatedAtGT(v time.Time) predicate.Role
- func CreatedAtGTE(v time.Time) predicate.Role
- func CreatedAtIn(vs ...time.Time) predicate.Role
- func CreatedAtIsNil() predicate.Role
- func CreatedAtLT(v time.Time) predicate.Role
- func CreatedAtLTE(v time.Time) predicate.Role
- func CreatedAtNEQ(v time.Time) predicate.Role
- func CreatedAtNotIn(vs ...time.Time) predicate.Role
- func CreatedAtNotNil() predicate.Role
- func CreatedByID(v uuid.UUID) predicate.Role
- func CreatedByIDEQ(v uuid.UUID) predicate.Role
- func CreatedByIDGT(v uuid.UUID) predicate.Role
- func CreatedByIDGTE(v uuid.UUID) predicate.Role
- func CreatedByIDIn(vs ...uuid.UUID) predicate.Role
- func CreatedByIDIsNil() predicate.Role
- func CreatedByIDLT(v uuid.UUID) predicate.Role
- func CreatedByIDLTE(v uuid.UUID) predicate.Role
- func CreatedByIDNEQ(v uuid.UUID) predicate.Role
- func CreatedByIDNotIn(vs ...uuid.UUID) predicate.Role
- func CreatedByIDNotNil() predicate.Role
- func DefaultDataScope(v string) predicate.Role
- func DefaultDataScopeContains(v string) predicate.Role
- func DefaultDataScopeContainsFold(v string) predicate.Role
- func DefaultDataScopeEQ(v string) predicate.Role
- func DefaultDataScopeEqualFold(v string) predicate.Role
- func DefaultDataScopeGT(v string) predicate.Role
- func DefaultDataScopeGTE(v string) predicate.Role
- func DefaultDataScopeHasPrefix(v string) predicate.Role
- func DefaultDataScopeHasSuffix(v string) predicate.Role
- func DefaultDataScopeIn(vs ...string) predicate.Role
- func DefaultDataScopeLT(v string) predicate.Role
- func DefaultDataScopeLTE(v string) predicate.Role
- func DefaultDataScopeNEQ(v string) predicate.Role
- func DefaultDataScopeNotIn(vs ...string) predicate.Role
- func DeletedAt(v time.Time) predicate.Role
- func DeletedAtEQ(v time.Time) predicate.Role
- func DeletedAtGT(v time.Time) predicate.Role
- func DeletedAtGTE(v time.Time) predicate.Role
- func DeletedAtIn(vs ...time.Time) predicate.Role
- func DeletedAtIsNil() predicate.Role
- func DeletedAtLT(v time.Time) predicate.Role
- func DeletedAtLTE(v time.Time) predicate.Role
- func DeletedAtNEQ(v time.Time) predicate.Role
- func DeletedAtNotIn(vs ...time.Time) predicate.Role
- func DeletedAtNotNil() predicate.Role
- func DeletedByID(v uuid.UUID) predicate.Role
- func DeletedByIDEQ(v uuid.UUID) predicate.Role
- func DeletedByIDGT(v uuid.UUID) predicate.Role
- func DeletedByIDGTE(v uuid.UUID) predicate.Role
- func DeletedByIDIn(vs ...uuid.UUID) predicate.Role
- func DeletedByIDIsNil() predicate.Role
- func DeletedByIDLT(v uuid.UUID) predicate.Role
- func DeletedByIDLTE(v uuid.UUID) predicate.Role
- func DeletedByIDNEQ(v uuid.UUID) predicate.Role
- func DeletedByIDNotIn(vs ...uuid.UUID) predicate.Role
- func DeletedByIDNotNil() predicate.Role
- func Description(v string) predicate.Role
- func DescriptionContains(v string) predicate.Role
- func DescriptionContainsFold(v string) predicate.Role
- func DescriptionEQ(v string) predicate.Role
- func DescriptionEqualFold(v string) predicate.Role
- func DescriptionGT(v string) predicate.Role
- func DescriptionGTE(v string) predicate.Role
- func DescriptionHasPrefix(v string) predicate.Role
- func DescriptionHasSuffix(v string) predicate.Role
- func DescriptionIn(vs ...string) predicate.Role
- func DescriptionIsNil() predicate.Role
- func DescriptionLT(v string) predicate.Role
- func DescriptionLTE(v string) predicate.Role
- func DescriptionNEQ(v string) predicate.Role
- func DescriptionNotIn(vs ...string) predicate.Role
- func DescriptionNotNil() predicate.Role
- func HasAPIKeys() predicate.Role
- func HasAPIKeysWith(preds ...predicate.ApiKey) predicate.Role
- func HasChildren() predicate.Role
- func HasChildrenWith(preds ...predicate.Role) predicate.Role
- func HasMenus() predicate.Role
- func HasMenusWith(preds ...predicate.Menu) predicate.Role
- func HasParent() predicate.Role
- func HasParentWith(preds ...predicate.Role) predicate.Role
- func HasUsers() predicate.Role
- func HasUsersWith(preds ...predicate.User) predicate.Role
- func ID(id uuid.UUID) predicate.Role
- func IDEQ(id uuid.UUID) predicate.Role
- func IDGT(id uuid.UUID) predicate.Role
- func IDGTE(id uuid.UUID) predicate.Role
- func IDIn(ids ...uuid.UUID) predicate.Role
- func IDLT(id uuid.UUID) predicate.Role
- func IDLTE(id uuid.UUID) predicate.Role
- func IDNEQ(id uuid.UUID) predicate.Role
- func IDNotIn(ids ...uuid.UUID) predicate.Role
- func IsSystem(v bool) predicate.Role
- func IsSystemEQ(v bool) predicate.Role
- func IsSystemNEQ(v bool) predicate.Role
- func Name(v string) predicate.Role
- func NameContains(v string) predicate.Role
- func NameContainsFold(v string) predicate.Role
- func NameEQ(v string) predicate.Role
- func NameEqualFold(v string) predicate.Role
- func NameGT(v string) predicate.Role
- func NameGTE(v string) predicate.Role
- func NameHasPrefix(v string) predicate.Role
- func NameHasSuffix(v string) predicate.Role
- func NameIn(vs ...string) predicate.Role
- func NameLT(v string) predicate.Role
- func NameLTE(v string) predicate.Role
- func NameNEQ(v string) predicate.Role
- func NameNotIn(vs ...string) predicate.Role
- func Not(p predicate.Role) predicate.Role
- func Or(predicates ...predicate.Role) predicate.Role
- func OwnerDomainID(v uuid.UUID) predicate.Role
- func OwnerDomainIDEQ(v uuid.UUID) predicate.Role
- func OwnerDomainIDGT(v uuid.UUID) predicate.Role
- func OwnerDomainIDGTE(v uuid.UUID) predicate.Role
- func OwnerDomainIDIn(vs ...uuid.UUID) predicate.Role
- func OwnerDomainIDIsNil() predicate.Role
- func OwnerDomainIDLT(v uuid.UUID) predicate.Role
- func OwnerDomainIDLTE(v uuid.UUID) predicate.Role
- func OwnerDomainIDNEQ(v uuid.UUID) predicate.Role
- func OwnerDomainIDNotIn(vs ...uuid.UUID) predicate.Role
- func OwnerDomainIDNotNil() predicate.Role
- func PublishedAt(v time.Time) predicate.Role
- func PublishedAtEQ(v time.Time) predicate.Role
- func PublishedAtGT(v time.Time) predicate.Role
- func PublishedAtGTE(v time.Time) predicate.Role
- func PublishedAtIn(vs ...time.Time) predicate.Role
- func PublishedAtIsNil() predicate.Role
- func PublishedAtLT(v time.Time) predicate.Role
- func PublishedAtLTE(v time.Time) predicate.Role
- func PublishedAtNEQ(v time.Time) predicate.Role
- func PublishedAtNotIn(vs ...time.Time) predicate.Role
- func PublishedAtNotNil() predicate.Role
- func Sort(v int) predicate.Role
- func SortEQ(v int) predicate.Role
- func SortGT(v int) predicate.Role
- func SortGTE(v int) predicate.Role
- func SortIn(vs ...int) predicate.Role
- func SortLT(v int) predicate.Role
- func SortLTE(v int) predicate.Role
- func SortNEQ(v int) predicate.Role
- func SortNotIn(vs ...int) predicate.Role
- func UpdatedAt(v time.Time) predicate.Role
- func UpdatedAtEQ(v time.Time) predicate.Role
- func UpdatedAtGT(v time.Time) predicate.Role
- func UpdatedAtGTE(v time.Time) predicate.Role
- func UpdatedAtIn(vs ...time.Time) predicate.Role
- func UpdatedAtIsNil() predicate.Role
- func UpdatedAtLT(v time.Time) predicate.Role
- func UpdatedAtLTE(v time.Time) predicate.Role
- func UpdatedAtNEQ(v time.Time) predicate.Role
- func UpdatedAtNotIn(vs ...time.Time) predicate.Role
- func UpdatedAtNotNil() predicate.Role
- func UpdatedByID(v uuid.UUID) predicate.Role
- func UpdatedByIDEQ(v uuid.UUID) predicate.Role
- func UpdatedByIDGT(v uuid.UUID) predicate.Role
- func UpdatedByIDGTE(v uuid.UUID) predicate.Role
- func UpdatedByIDIn(vs ...uuid.UUID) predicate.Role
- func UpdatedByIDIsNil() predicate.Role
- func UpdatedByIDLT(v uuid.UUID) predicate.Role
- func UpdatedByIDLTE(v uuid.UUID) predicate.Role
- func UpdatedByIDNEQ(v uuid.UUID) predicate.Role
- func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.Role
- func UpdatedByIDNotNil() predicate.Role
- func ValidColumn(column string) bool
- type OrderOption
- func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByArchivedAt(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 ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultDataScope(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsSystem(opts ...sql.OrderTermOption) OrderOption
- func ByMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMenusCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerDomainID(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByID(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 role type in the database. Label = "role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedByID holds the string denoting the created_by_id field in the database. FieldCreatedByID = "created_by_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedByID holds the string denoting the updated_by_id field in the database. FieldUpdatedByID = "updated_by_id" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedByID holds the string denoting the deleted_by_id field in the database. FieldDeletedByID = "deleted_by_id" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldPublishedAt holds the string denoting the published_at field in the database. FieldPublishedAt = "published_at" // FieldArchivedAt holds the string denoting the archived_at field in the database. FieldArchivedAt = "archived_at" // FieldOwnerDomainID holds the string denoting the owner_domain_id field in the database. FieldOwnerDomainID = "owner_domain_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldIsSystem holds the string denoting the is_system field in the database. FieldIsSystem = "is_system" // FieldPermissions holds the string denoting the permissions field in the database. FieldPermissions = "permissions" // FieldDefaultDataScope holds the string denoting the default_data_scope field in the database. FieldDefaultDataScope = "default_data_scope" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeAPIKeys holds the string denoting the api_keys edge name in mutations. EdgeAPIKeys = "api_keys" // EdgeMenus holds the string denoting the menus edge name in mutations. EdgeMenus = "menus" // 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" // Table holds the table name of the role in the database. Table = "roles" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_roles" // 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 = "users" // APIKeysTable is the table that holds the api_keys relation/edge. APIKeysTable = "api_keys" // APIKeysInverseTable is the table name for the ApiKey entity. // It exists in this package in order to avoid circular dependency with the "apikey" package. APIKeysInverseTable = "api_keys" // APIKeysColumn is the table column denoting the api_keys relation/edge. APIKeysColumn = "role_api_keys" // MenusTable is the table that holds the menus relation/edge. The primary key declared below. MenusTable = "role_menus" // MenusInverseTable is the table name for the Menu entity. // It exists in this package in order to avoid circular dependency with the "menu" package. MenusInverseTable = "menus" // ParentTable is the table that holds the parent relation/edge. ParentTable = "roles" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "role_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "roles" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "role_children" )
Variables ¶
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "role_id"} // MenusPrimaryKey and MenusColumn2 are the table columns denoting the // primary key for the menus relation (M2M). MenusPrimaryKey = []string{"role_id", "menu_id"} )
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int // DefaultIsSystem holds the default value on creation for the "is_system" field. DefaultIsSystem bool // DefaultDefaultDataScope holds the default value on creation for the "default_data_scope" field. DefaultDefaultDataScope string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedByID, FieldCreatedAt, FieldUpdatedByID, FieldUpdatedAt, FieldDeletedByID, FieldDeletedAt, FieldPublishedAt, FieldArchivedAt, FieldOwnerDomainID, FieldName, FieldCode, FieldDescription, FieldSort, FieldIsSystem, FieldPermissions, FieldDefaultDataScope, }
Columns holds all SQL columns for role fields.
var ForeignKeys = []string{
"role_children",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "roles" table and are not defined as standalone fields in the schema.
Functions ¶
func ArchivedAt ¶
ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAtEQ ¶
ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtGT ¶
ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGTE ¶
ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtIn ¶
ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIsNil ¶
ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtLT ¶
ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLTE ¶
ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtNEQ ¶
ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNotIn ¶
ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotNil ¶
ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.
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 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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedByID ¶
CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.
func CreatedByIDEQ ¶
CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.
func CreatedByIDGT ¶
CreatedByIDGT applies the GT predicate on the "created_by_id" field.
func CreatedByIDGTE ¶
CreatedByIDGTE applies the GTE predicate on the "created_by_id" field.
func CreatedByIDIn ¶
CreatedByIDIn applies the In predicate on the "created_by_id" field.
func CreatedByIDIsNil ¶
CreatedByIDIsNil applies the IsNil predicate on the "created_by_id" field.
func CreatedByIDLT ¶
CreatedByIDLT applies the LT predicate on the "created_by_id" field.
func CreatedByIDLTE ¶
CreatedByIDLTE applies the LTE predicate on the "created_by_id" field.
func CreatedByIDNEQ ¶
CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.
func CreatedByIDNotIn ¶
CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.
func CreatedByIDNotNil ¶
CreatedByIDNotNil applies the NotNil predicate on the "created_by_id" field.
func DefaultDataScope ¶
DefaultDataScope applies equality check predicate on the "default_data_scope" field. It's identical to DefaultDataScopeEQ.
func DefaultDataScopeContains ¶
DefaultDataScopeContains applies the Contains predicate on the "default_data_scope" field.
func DefaultDataScopeContainsFold ¶
DefaultDataScopeContainsFold applies the ContainsFold predicate on the "default_data_scope" field.
func DefaultDataScopeEQ ¶
DefaultDataScopeEQ applies the EQ predicate on the "default_data_scope" field.
func DefaultDataScopeEqualFold ¶
DefaultDataScopeEqualFold applies the EqualFold predicate on the "default_data_scope" field.
func DefaultDataScopeGT ¶
DefaultDataScopeGT applies the GT predicate on the "default_data_scope" field.
func DefaultDataScopeGTE ¶
DefaultDataScopeGTE applies the GTE predicate on the "default_data_scope" field.
func DefaultDataScopeHasPrefix ¶
DefaultDataScopeHasPrefix applies the HasPrefix predicate on the "default_data_scope" field.
func DefaultDataScopeHasSuffix ¶
DefaultDataScopeHasSuffix applies the HasSuffix predicate on the "default_data_scope" field.
func DefaultDataScopeIn ¶
DefaultDataScopeIn applies the In predicate on the "default_data_scope" field.
func DefaultDataScopeLT ¶
DefaultDataScopeLT applies the LT predicate on the "default_data_scope" field.
func DefaultDataScopeLTE ¶
DefaultDataScopeLTE applies the LTE predicate on the "default_data_scope" field.
func DefaultDataScopeNEQ ¶
DefaultDataScopeNEQ applies the NEQ predicate on the "default_data_scope" field.
func DefaultDataScopeNotIn ¶
DefaultDataScopeNotIn applies the NotIn predicate on the "default_data_scope" 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 DeletedByID ¶
DeletedByID applies equality check predicate on the "deleted_by_id" field. It's identical to DeletedByIDEQ.
func DeletedByIDEQ ¶
DeletedByIDEQ applies the EQ predicate on the "deleted_by_id" field.
func DeletedByIDGT ¶
DeletedByIDGT applies the GT predicate on the "deleted_by_id" field.
func DeletedByIDGTE ¶
DeletedByIDGTE applies the GTE predicate on the "deleted_by_id" field.
func DeletedByIDIn ¶
DeletedByIDIn applies the In predicate on the "deleted_by_id" field.
func DeletedByIDIsNil ¶
DeletedByIDIsNil applies the IsNil predicate on the "deleted_by_id" field.
func DeletedByIDLT ¶
DeletedByIDLT applies the LT predicate on the "deleted_by_id" field.
func DeletedByIDLTE ¶
DeletedByIDLTE applies the LTE predicate on the "deleted_by_id" field.
func DeletedByIDNEQ ¶
DeletedByIDNEQ applies the NEQ predicate on the "deleted_by_id" field.
func DeletedByIDNotIn ¶
DeletedByIDNotIn applies the NotIn predicate on the "deleted_by_id" field.
func DeletedByIDNotNil ¶
DeletedByIDNotNil applies the NotNil predicate on the "deleted_by_id" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasAPIKeys ¶
HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
func HasAPIKeysWith ¶
HasAPIKeysWith applies the HasEdge predicate on the "api_keys" 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 HasMenusWith ¶
HasMenusWith applies the HasEdge predicate on the "menus" 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 HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func IsSystem ¶
IsSystem applies equality check predicate on the "is_system" field. It's identical to IsSystemEQ.
func IsSystemEQ ¶
IsSystemEQ applies the EQ predicate on the "is_system" field.
func IsSystemNEQ ¶
IsSystemNEQ applies the NEQ predicate on the "is_system" field.
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 OwnerDomainID ¶
OwnerDomainID applies equality check predicate on the "owner_domain_id" field. It's identical to OwnerDomainIDEQ.
func OwnerDomainIDEQ ¶
OwnerDomainIDEQ applies the EQ predicate on the "owner_domain_id" field.
func OwnerDomainIDGT ¶
OwnerDomainIDGT applies the GT predicate on the "owner_domain_id" field.
func OwnerDomainIDGTE ¶
OwnerDomainIDGTE applies the GTE predicate on the "owner_domain_id" field.
func OwnerDomainIDIn ¶
OwnerDomainIDIn applies the In predicate on the "owner_domain_id" field.
func OwnerDomainIDIsNil ¶
OwnerDomainIDIsNil applies the IsNil predicate on the "owner_domain_id" field.
func OwnerDomainIDLT ¶
OwnerDomainIDLT applies the LT predicate on the "owner_domain_id" field.
func OwnerDomainIDLTE ¶
OwnerDomainIDLTE applies the LTE predicate on the "owner_domain_id" field.
func OwnerDomainIDNEQ ¶
OwnerDomainIDNEQ applies the NEQ predicate on the "owner_domain_id" field.
func OwnerDomainIDNotIn ¶
OwnerDomainIDNotIn applies the NotIn predicate on the "owner_domain_id" field.
func OwnerDomainIDNotNil ¶
OwnerDomainIDNotNil applies the NotNil predicate on the "owner_domain_id" field.
func PublishedAt ¶
PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
PublishedAtEQ applies the EQ predicate on the "published_at" field.
func PublishedAtGT ¶
PublishedAtGT applies the GT predicate on the "published_at" field.
func PublishedAtGTE ¶
PublishedAtGTE applies the GTE predicate on the "published_at" field.
func PublishedAtIn ¶
PublishedAtIn applies the In predicate on the "published_at" field.
func PublishedAtIsNil ¶
PublishedAtIsNil applies the IsNil predicate on the "published_at" field.
func PublishedAtLT ¶
PublishedAtLT applies the LT predicate on the "published_at" field.
func PublishedAtLTE ¶
PublishedAtLTE applies the LTE predicate on the "published_at" field.
func PublishedAtNEQ ¶
PublishedAtNEQ applies the NEQ predicate on the "published_at" field.
func PublishedAtNotIn ¶
PublishedAtNotIn applies the NotIn predicate on the "published_at" field.
func PublishedAtNotNil ¶
PublishedAtNotNil applies the NotNil predicate on the "published_at" 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 UpdatedByID ¶
UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.
func UpdatedByIDEQ ¶
UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.
func UpdatedByIDGT ¶
UpdatedByIDGT applies the GT predicate on the "updated_by_id" field.
func UpdatedByIDGTE ¶
UpdatedByIDGTE applies the GTE predicate on the "updated_by_id" field.
func UpdatedByIDIn ¶
UpdatedByIDIn applies the In predicate on the "updated_by_id" field.
func UpdatedByIDIsNil ¶
UpdatedByIDIsNil applies the IsNil predicate on the "updated_by_id" field.
func UpdatedByIDLT ¶
UpdatedByIDLT applies the LT predicate on the "updated_by_id" field.
func UpdatedByIDLTE ¶
UpdatedByIDLTE applies the LTE predicate on the "updated_by_id" field.
func UpdatedByIDNEQ ¶
UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.
func UpdatedByIDNotIn ¶
UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.
func UpdatedByIDNotNil ¶
UpdatedByIDNotNil applies the NotNil predicate on the "updated_by_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Role queries.
func ByAPIKeys ¶
func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAPIKeys orders the results by api_keys terms.
func ByAPIKeysCount ¶
func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
ByAPIKeysCount orders the results by api_keys count.
func ByArchivedAt ¶
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
ByArchivedAt orders the results by the archived_at field.
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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByID ¶
func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
ByCreatedByID orders the results by the created_by_id field.
func ByDefaultDataScope ¶
func ByDefaultDataScope(opts ...sql.OrderTermOption) OrderOption
ByDefaultDataScope orders the results by the default_data_scope field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedByID ¶
func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
ByDeletedByID orders the results by the deleted_by_id field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsSystem ¶
func ByIsSystem(opts ...sql.OrderTermOption) OrderOption
ByIsSystem orders the results by the is_system field.
func ByMenus ¶
func ByMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMenus orders the results by menus terms.
func ByMenusCount ¶
func ByMenusCount(opts ...sql.OrderTermOption) OrderOption
ByMenusCount orders the results by menus count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerDomainID ¶
func ByOwnerDomainID(opts ...sql.OrderTermOption) OrderOption
ByOwnerDomainID orders the results by the owner_domain_id field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the published_at field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedByID ¶
func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
ByUpdatedByID orders the results by the updated_by_id 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.