Documentation ¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.User
- func AddressContains(v string) predicate.User
- func AddressContainsFold(v string) predicate.User
- func AddressEQ(v string) predicate.User
- func AddressEqualFold(v string) predicate.User
- func AddressGT(v string) predicate.User
- func AddressGTE(v string) predicate.User
- func AddressHasPrefix(v string) predicate.User
- func AddressHasSuffix(v string) predicate.User
- func AddressIn(vs ...string) predicate.User
- func AddressLT(v string) predicate.User
- func AddressLTE(v string) predicate.User
- func AddressNEQ(v string) predicate.User
- func AddressNotIn(vs ...string) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func HasCreated() predicate.User
- func HasCreatedWith(preds ...predicate.Squeak) predicate.User
- func HasFollowers() predicate.User
- func HasFollowersWith(preds ...predicate.User) predicate.User
- func HasFollowing() predicate.User
- func HasFollowingWith(preds ...predicate.User) predicate.User
- func HasInteractions() predicate.User
- func HasInteractionsWith(preds ...predicate.Interaction) predicate.User
- func HasOwned() predicate.User
- func HasOwnedWith(preds ...predicate.Squeak) predicate.User
- func HasPoolPasses() predicate.User
- func HasPoolPassesWith(preds ...predicate.PoolPass) predicate.User
- func HasRoles() predicate.User
- func HasRolesWith(preds ...predicate.Role) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Level(v int8) predicate.User
- func LevelEQ(v int8) predicate.User
- func LevelGT(v int8) predicate.User
- func LevelGTE(v int8) predicate.User
- func LevelIn(vs ...int8) predicate.User
- func LevelLT(v int8) predicate.User
- func LevelLTE(v int8) predicate.User
- func LevelNEQ(v int8) predicate.User
- func LevelNotIn(vs ...int8) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldLevel holds the string denoting the level field in the database. FieldLevel = "level" // EdgeInteractions holds the string denoting the interactions edge name in mutations. EdgeInteractions = "interactions" // EdgePoolPasses holds the string denoting the pool_passes edge name in mutations. EdgePoolPasses = "pool_passes" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgeCreated holds the string denoting the created edge name in mutations. EdgeCreated = "created" // EdgeOwned holds the string denoting the owned edge name in mutations. EdgeOwned = "owned" // EdgeFollowers holds the string denoting the followers edge name in mutations. EdgeFollowers = "followers" // EdgeFollowing holds the string denoting the following edge name in mutations. EdgeFollowing = "following" // Table holds the table name of the user in the database. Table = "users" // InteractionsTable is the table that holds the interactions relation/edge. InteractionsTable = "interactions" // InteractionsInverseTable is the table name for the Interaction entity. // It exists in this package in order to avoid circular dependency with the "interaction" package. InteractionsInverseTable = "interactions" // InteractionsColumn is the table column denoting the interactions relation/edge. InteractionsColumn = "user_interactions" // PoolPassesTable is the table that holds the pool_passes relation/edge. PoolPassesTable = "pool_passes" // PoolPassesInverseTable is the table name for the PoolPass entity. // It exists in this package in order to avoid circular dependency with the "poolpass" package. PoolPassesInverseTable = "pool_passes" // PoolPassesColumn is the table column denoting the pool_passes relation/edge. PoolPassesColumn = "user_pool_passes" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "user_roles" // RolesInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RolesInverseTable = "roles" // CreatedTable is the table that holds the created relation/edge. CreatedTable = "squeaks" // CreatedInverseTable is the table name for the Squeak entity. // It exists in this package in order to avoid circular dependency with the "squeak" package. CreatedInverseTable = "squeaks" // CreatedColumn is the table column denoting the created relation/edge. CreatedColumn = "user_created" // OwnedTable is the table that holds the owned relation/edge. OwnedTable = "squeaks" // OwnedInverseTable is the table name for the Squeak entity. // It exists in this package in order to avoid circular dependency with the "squeak" package. OwnedInverseTable = "squeaks" // OwnedColumn is the table column denoting the owned relation/edge. OwnedColumn = "user_owned" // FollowersTable is the table that holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" // FollowingTable is the table that holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" )
Variables ¶
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"user_id", "role_id"} // FollowersPrimaryKey and FollowersColumn2 are the table columns denoting the // primary key for the followers relation (M2M). FollowersPrimaryKey = []string{"user_id", "follower_id"} // FollowingPrimaryKey and FollowingColumn2 are the table columns denoting the // primary key for the following relation (M2M). FollowingPrimaryKey = []string{"user_id", "follower_id"} )
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // AddressValidator is a validator for the "address" field. It is called by the builders before save. AddressValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // DefaultLevel holds the default value on creation for the "level" field. DefaultLevel int8 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldAddress, FieldUsername, FieldStatus, FieldLevel, }
Columns holds all SQL columns for user fields.
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCreated ¶
HasCreated applies the HasEdge predicate on the "created" edge.
func HasCreatedWith ¶
HasCreatedWith applies the HasEdge predicate on the "created" edge with a given conditions (other predicates).
func HasFollowers ¶
HasFollowers applies the HasEdge predicate on the "followers" edge.
func HasFollowersWith ¶
HasFollowersWith applies the HasEdge predicate on the "followers" edge with a given conditions (other predicates).
func HasFollowing ¶
HasFollowing applies the HasEdge predicate on the "following" edge.
func HasFollowingWith ¶
HasFollowingWith applies the HasEdge predicate on the "following" edge with a given conditions (other predicates).
func HasInteractions ¶
HasInteractions applies the HasEdge predicate on the "interactions" edge.
func HasInteractionsWith ¶
func HasInteractionsWith(preds ...predicate.Interaction) predicate.User
HasInteractionsWith applies the HasEdge predicate on the "interactions" edge with a given conditions (other predicates).
func HasOwnedWith ¶
HasOwnedWith applies the HasEdge predicate on the "owned" edge with a given conditions (other predicates).
func HasPoolPasses ¶
HasPoolPasses applies the HasEdge predicate on the "pool_passes" edge.
func HasPoolPassesWith ¶
HasPoolPassesWith applies the HasEdge predicate on the "pool_passes" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func Level ¶
Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
func LevelNotIn ¶
LevelNotIn applies the NotIn predicate on the "level" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).