Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EntUser) predicate.EntUser
- func CreatedAt(v time.Time) predicate.EntUser
- func CreatedAtEQ(v time.Time) predicate.EntUser
- func CreatedAtGT(v time.Time) predicate.EntUser
- func CreatedAtGTE(v time.Time) predicate.EntUser
- func CreatedAtIn(vs ...time.Time) predicate.EntUser
- func CreatedAtLT(v time.Time) predicate.EntUser
- func CreatedAtLTE(v time.Time) predicate.EntUser
- func CreatedAtNEQ(v time.Time) predicate.EntUser
- func CreatedAtNotIn(vs ...time.Time) predicate.EntUser
- func Deleted(v bool) predicate.EntUser
- func DeletedEQ(v bool) predicate.EntUser
- func DeletedNEQ(v bool) predicate.EntUser
- func HasEntUserNames() predicate.EntUser
- func HasEntUserNamesWith(preds ...predicate.EntUserName) predicate.EntUser
- func ID(id uuid.UUID) predicate.EntUser
- func IDEQ(id uuid.UUID) predicate.EntUser
- func IDGT(id uuid.UUID) predicate.EntUser
- func IDGTE(id uuid.UUID) predicate.EntUser
- func IDIn(ids ...uuid.UUID) predicate.EntUser
- func IDLT(id uuid.UUID) predicate.EntUser
- func IDLTE(id uuid.UUID) predicate.EntUser
- func IDNEQ(id uuid.UUID) predicate.EntUser
- func IDNotIn(ids ...uuid.UUID) predicate.EntUser
- func Not(p predicate.EntUser) predicate.EntUser
- func Or(predicates ...predicate.EntUser) predicate.EntUser
- func UpdatedAt(v time.Time) predicate.EntUser
- func UpdatedAtEQ(v time.Time) predicate.EntUser
- func UpdatedAtGT(v time.Time) predicate.EntUser
- func UpdatedAtGTE(v time.Time) predicate.EntUser
- func UpdatedAtIn(vs ...time.Time) predicate.EntUser
- func UpdatedAtLT(v time.Time) predicate.EntUser
- func UpdatedAtLTE(v time.Time) predicate.EntUser
- func UpdatedAtNEQ(v time.Time) predicate.EntUser
- func UpdatedAtNotIn(vs ...time.Time) predicate.EntUser
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeleted(opts ...sql.OrderTermOption) OrderOption
- func ByEntUserNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntUserNamesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the entuser type in the database. Label = "ent_user" // 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" // FieldDeleted holds the string denoting the deleted field in the database. FieldDeleted = "deleted" // EdgeEntUserNames holds the string denoting the ent_user_names edge name in mutations. EdgeEntUserNames = "ent_user_names" // Table holds the table name of the entuser in the database. Table = "ent_users" // EntUserNamesTable is the table that holds the ent_user_names relation/edge. EntUserNamesTable = "ent_user_names" // EntUserNamesInverseTable is the table name for the EntUserName entity. // It exists in this package in order to avoid circular dependency with the "entusername" package. EntUserNamesInverseTable = "ent_user_names" // EntUserNamesColumn is the table column denoting the ent_user_names relation/edge. EntUserNamesColumn = "user_id" )
Variables ¶
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 // DefaultDeleted holds the default value on creation for the "deleted" field. DefaultDeleted bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeleted, }
Columns holds all SQL columns for entuser 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 Deleted ¶
Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
func DeletedNEQ ¶
DeletedNEQ applies the NEQ predicate on the "deleted" field.
func HasEntUserNames ¶
HasEntUserNames applies the HasEdge predicate on the "ent_user_names" edge.
func HasEntUserNamesWith ¶
func HasEntUserNamesWith(preds ...predicate.EntUserName) predicate.EntUser
HasEntUserNamesWith applies the HasEdge predicate on the "ent_user_names" 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the EntUser queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeleted ¶
func ByDeleted(opts ...sql.OrderTermOption) OrderOption
ByDeleted orders the results by the deleted field.
func ByEntUserNames ¶
func ByEntUserNames(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntUserNames orders the results by ent_user_names terms.
func ByEntUserNamesCount ¶
func ByEntUserNamesCount(opts ...sql.OrderTermOption) OrderOption
ByEntUserNamesCount orders the results by ent_user_names count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.