Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserRole) predicate.UserRole
- func CreatedAt(v time.Time) predicate.UserRole
- func CreatedAtEQ(v time.Time) predicate.UserRole
- func CreatedAtGT(v time.Time) predicate.UserRole
- func CreatedAtGTE(v time.Time) predicate.UserRole
- func CreatedAtIn(vs ...time.Time) predicate.UserRole
- func CreatedAtLT(v time.Time) predicate.UserRole
- func CreatedAtLTE(v time.Time) predicate.UserRole
- func CreatedAtNEQ(v time.Time) predicate.UserRole
- func CreatedAtNotIn(vs ...time.Time) predicate.UserRole
- func HasUsers() predicate.UserRole
- func HasUsersWith(preds ...predicate.User) predicate.UserRole
- func ID(id uuid.UUID) predicate.UserRole
- func IDEQ(id uuid.UUID) predicate.UserRole
- func IDGT(id uuid.UUID) predicate.UserRole
- func IDGTE(id uuid.UUID) predicate.UserRole
- func IDIn(ids ...uuid.UUID) predicate.UserRole
- func IDLT(id uuid.UUID) predicate.UserRole
- func IDLTE(id uuid.UUID) predicate.UserRole
- func IDNEQ(id uuid.UUID) predicate.UserRole
- func IDNotIn(ids ...uuid.UUID) predicate.UserRole
- func MetadataIsNil() predicate.UserRole
- func MetadataNotNil() predicate.UserRole
- func Name(v string) predicate.UserRole
- func NameContains(v string) predicate.UserRole
- func NameContainsFold(v string) predicate.UserRole
- func NameEQ(v string) predicate.UserRole
- func NameEqualFold(v string) predicate.UserRole
- func NameGT(v string) predicate.UserRole
- func NameGTE(v string) predicate.UserRole
- func NameHasPrefix(v string) predicate.UserRole
- func NameHasSuffix(v string) predicate.UserRole
- func NameIn(vs ...string) predicate.UserRole
- func NameLT(v string) predicate.UserRole
- func NameLTE(v string) predicate.UserRole
- func NameNEQ(v string) predicate.UserRole
- func NameNotIn(vs ...string) predicate.UserRole
- func Not(p predicate.UserRole) predicate.UserRole
- func Or(predicates ...predicate.UserRole) predicate.UserRole
- func UpdatedAt(v time.Time) predicate.UserRole
- func UpdatedAtEQ(v time.Time) predicate.UserRole
- func UpdatedAtGT(v time.Time) predicate.UserRole
- func UpdatedAtGTE(v time.Time) predicate.UserRole
- func UpdatedAtIn(vs ...time.Time) predicate.UserRole
- func UpdatedAtLT(v time.Time) predicate.UserRole
- func UpdatedAtLTE(v time.Time) predicate.UserRole
- func UpdatedAtNEQ(v time.Time) predicate.UserRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserRole
- func UserID(v uuid.UUID) predicate.UserRole
- func UserIDEQ(v uuid.UUID) predicate.UserRole
- func UserIDGT(v uuid.UUID) predicate.UserRole
- func UserIDGTE(v uuid.UUID) predicate.UserRole
- func UserIDIn(vs ...uuid.UUID) predicate.UserRole
- func UserIDLT(v uuid.UUID) predicate.UserRole
- func UserIDLTE(v uuid.UUID) predicate.UserRole
- func UserIDNEQ(v uuid.UUID) predicate.UserRole
- func UserIDNotIn(vs ...uuid.UUID) predicate.UserRole
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the userrole type in the database. Label = "user_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // 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" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the userrole in the database. Table = "userrolesx" // UsersTable is the table the holds the users relation/edge. UsersTable = "userrolesx" // 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 = "usersx" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "user_user_roles" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // 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 // DefaultID holds the default value on creation for the id field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldUserID, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for userrole fields.
var ForeignKeys = []string{
"user_user_roles",
}
ForeignKeys holds the SQL foreign-keys that are owned by the UserRole type.
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 HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" 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 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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.