Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AuthRole) predicate.AuthRole
- func CreatedAt(v time.Time) predicate.AuthRole
- func CreatedAtEQ(v time.Time) predicate.AuthRole
- func CreatedAtGT(v time.Time) predicate.AuthRole
- func CreatedAtGTE(v time.Time) predicate.AuthRole
- func CreatedAtIn(vs ...time.Time) predicate.AuthRole
- func CreatedAtLT(v time.Time) predicate.AuthRole
- func CreatedAtLTE(v time.Time) predicate.AuthRole
- func CreatedAtNEQ(v time.Time) predicate.AuthRole
- func CreatedAtNotIn(vs ...time.Time) predicate.AuthRole
- func DeletedAt(v time.Time) predicate.AuthRole
- func DeletedAtEQ(v time.Time) predicate.AuthRole
- func DeletedAtGT(v time.Time) predicate.AuthRole
- func DeletedAtGTE(v time.Time) predicate.AuthRole
- func DeletedAtIn(vs ...time.Time) predicate.AuthRole
- func DeletedAtIsNil() predicate.AuthRole
- func DeletedAtLT(v time.Time) predicate.AuthRole
- func DeletedAtLTE(v time.Time) predicate.AuthRole
- func DeletedAtNEQ(v time.Time) predicate.AuthRole
- func DeletedAtNotIn(vs ...time.Time) predicate.AuthRole
- func DeletedAtNotNil() predicate.AuthRole
- func Description(v string) predicate.AuthRole
- func DescriptionContains(v string) predicate.AuthRole
- func DescriptionContainsFold(v string) predicate.AuthRole
- func DescriptionEQ(v string) predicate.AuthRole
- func DescriptionEqualFold(v string) predicate.AuthRole
- func DescriptionGT(v string) predicate.AuthRole
- func DescriptionGTE(v string) predicate.AuthRole
- func DescriptionHasPrefix(v string) predicate.AuthRole
- func DescriptionHasSuffix(v string) predicate.AuthRole
- func DescriptionIn(vs ...string) predicate.AuthRole
- func DescriptionIsNil() predicate.AuthRole
- func DescriptionLT(v string) predicate.AuthRole
- func DescriptionLTE(v string) predicate.AuthRole
- func DescriptionNEQ(v string) predicate.AuthRole
- func DescriptionNotIn(vs ...string) predicate.AuthRole
- func DescriptionNotNil() predicate.AuthRole
- func HasAccounts() predicate.AuthRole
- func HasAccountsWith(preds ...predicate.Account) predicate.AuthRole
- func HasStaffAccounts() predicate.AuthRole
- func HasStaffAccountsWith(preds ...predicate.StaffAccount) predicate.AuthRole
- func ID(id pulid.PULID) predicate.AuthRole
- func IDEQ(id pulid.PULID) predicate.AuthRole
- func IDGT(id pulid.PULID) predicate.AuthRole
- func IDGTE(id pulid.PULID) predicate.AuthRole
- func IDIn(ids ...pulid.PULID) predicate.AuthRole
- func IDLT(id pulid.PULID) predicate.AuthRole
- func IDLTE(id pulid.PULID) predicate.AuthRole
- func IDNEQ(id pulid.PULID) predicate.AuthRole
- func IDNotIn(ids ...pulid.PULID) predicate.AuthRole
- func Not(p predicate.AuthRole) predicate.AuthRole
- func Or(predicates ...predicate.AuthRole) predicate.AuthRole
- func UpdatedAt(v time.Time) predicate.AuthRole
- func UpdatedAtEQ(v time.Time) predicate.AuthRole
- func UpdatedAtGT(v time.Time) predicate.AuthRole
- func UpdatedAtGTE(v time.Time) predicate.AuthRole
- func UpdatedAtIn(vs ...time.Time) predicate.AuthRole
- func UpdatedAtLT(v time.Time) predicate.AuthRole
- func UpdatedAtLTE(v time.Time) predicate.AuthRole
- func UpdatedAtNEQ(v time.Time) predicate.AuthRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.AuthRole
- func ValidColumn(column string) bool
- func ValueEQ(v Value) predicate.AuthRole
- func ValueIn(vs ...Value) predicate.AuthRole
- func ValueNEQ(v Value) predicate.AuthRole
- func ValueNotIn(vs ...Value) predicate.AuthRole
- func ValueValidator(v Value) error
- type Value
Constants ¶
const ( // Label holds the string label denoting the authrole type in the database. Label = "auth_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // 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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeAccounts holds the string denoting the accounts edge name in mutations. EdgeAccounts = "accounts" // EdgeStaffAccounts holds the string denoting the staff_accounts edge name in mutations. EdgeStaffAccounts = "staff_accounts" // Table holds the table name of the authrole in the database. Table = "auth_roles" // AccountsTable is the table that holds the accounts relation/edge. The primary key declared below. AccountsTable = "account_auth_roles" // AccountsInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountsInverseTable = "accounts" // StaffAccountsTable is the table that holds the staff_accounts relation/edge. The primary key declared below. StaffAccountsTable = "staff_account_auth_roles" // StaffAccountsInverseTable is the table name for the StaffAccount entity. // It exists in this package in order to avoid circular dependency with the "staffaccount" package. StaffAccountsInverseTable = "staff_accounts" )
Variables ¶
var ( // AccountsPrimaryKey and AccountsColumn2 are the table columns denoting the // primary key for the accounts relation (M2M). AccountsPrimaryKey = []string{"account_id", "auth_role_id"} // StaffAccountsPrimaryKey and StaffAccountsColumn2 are the table columns denoting the // primary key for the staff_accounts relation (M2M). StaffAccountsPrimaryKey = []string{"staff_account_id", "auth_role_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 // UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field. UpdateDefaultDeletedAt func() time.Time // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() pulid.PULID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldValue, FieldDescription, }
Columns holds all SQL columns for authrole fields.
Functions ¶
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 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 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 HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
func HasStaffAccounts ¶
HasStaffAccounts applies the HasEdge predicate on the "staff_accounts" edge.
func HasStaffAccountsWith ¶
func HasStaffAccountsWith(preds ...predicate.StaffAccount) predicate.AuthRole
HasStaffAccountsWith applies the HasEdge predicate on the "staff_accounts" edge with a given conditions (other predicates).
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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
func ValueValidator ¶
ValueValidator is a validator for the "value" field enum values. It is called by the builders before save.
Types ¶
type Value ¶
type Value string
Value defines the type for the "value" enum field.
const ( ValueDemo Value = "DEMO" ValueFree Value = "FREE" ValuePlus Value = "PLUS" ValuePro Value = "PRO" ValueEnterprise Value = "ENTERPRISE" ValueSupport Value = "SUPPORT" ValueAdmin Value = "ADMIN" ValueSuperAdmin Value = "SUPER_ADMIN" )
Value values.
func (Value) MarshalBinary ¶
func (Value) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Value) UnmarshalBinary ¶
func (*Value) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.