Documentation ¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.User
- func AdminEQ(v bool) predicate.User
- func AdminNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Expiry(v time.Time) predicate.User
- func ExpiryEQ(v time.Time) predicate.User
- func ExpiryGT(v time.Time) predicate.User
- func ExpiryGTE(v time.Time) predicate.User
- func ExpiryIn(vs ...time.Time) predicate.User
- func ExpiryLT(v time.Time) predicate.User
- func ExpiryLTE(v time.Time) predicate.User
- func ExpiryNEQ(v time.Time) predicate.User
- func ExpiryNotIn(vs ...time.Time) predicate.User
- func HasChatUser() predicate.User
- func HasChatUserWith(preds ...predicate.ChatUser) predicate.User
- func HasDeployments() predicate.User
- func HasDeploymentsWith(preds ...predicate.Deployment) predicate.User
- func HasLocks() predicate.User
- func HasLocksWith(preds ...predicate.Lock) predicate.User
- func HasPerms() predicate.User
- func HasPermsWith(preds ...predicate.Perm) predicate.User
- func HasRepos() predicate.User
- func HasReposWith(preds ...predicate.Repo) predicate.User
- func HasReviews() predicate.User
- func HasReviewsWith(preds ...predicate.Review) predicate.User
- func Hash(v string) predicate.User
- func HashContains(v string) predicate.User
- func HashContainsFold(v string) predicate.User
- func HashEQ(v string) predicate.User
- func HashEqualFold(v string) predicate.User
- func HashGT(v string) predicate.User
- func HashGTE(v string) predicate.User
- func HashHasPrefix(v string) predicate.User
- func HashHasSuffix(v string) predicate.User
- func HashIn(vs ...string) predicate.User
- func HashLT(v string) predicate.User
- func HashLTE(v string) predicate.User
- func HashNEQ(v string) predicate.User
- func HashNotIn(vs ...string) predicate.User
- func ID(id int64) predicate.User
- func IDEQ(id int64) predicate.User
- func IDGT(id int64) predicate.User
- func IDGTE(id int64) predicate.User
- func IDIn(ids ...int64) predicate.User
- func IDLT(id int64) predicate.User
- func IDLTE(id int64) predicate.User
- func IDNEQ(id int64) predicate.User
- func IDNotIn(ids ...int64) predicate.User
- func Login(v string) predicate.User
- func LoginContains(v string) predicate.User
- func LoginContainsFold(v string) predicate.User
- func LoginEQ(v string) predicate.User
- func LoginEqualFold(v string) predicate.User
- func LoginGT(v string) predicate.User
- func LoginGTE(v string) predicate.User
- func LoginHasPrefix(v string) predicate.User
- func LoginHasSuffix(v string) predicate.User
- func LoginIn(vs ...string) predicate.User
- func LoginLT(v string) predicate.User
- func LoginLTE(v string) predicate.User
- func LoginNEQ(v string) predicate.User
- func LoginNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Refresh(v string) predicate.User
- func RefreshContains(v string) predicate.User
- func RefreshContainsFold(v string) predicate.User
- func RefreshEQ(v string) predicate.User
- func RefreshEqualFold(v string) predicate.User
- func RefreshGT(v string) predicate.User
- func RefreshGTE(v string) predicate.User
- func RefreshHasPrefix(v string) predicate.User
- func RefreshHasSuffix(v string) predicate.User
- func RefreshIn(vs ...string) predicate.User
- func RefreshLT(v string) predicate.User
- func RefreshLTE(v string) predicate.User
- func RefreshNEQ(v string) predicate.User
- func RefreshNotIn(vs ...string) predicate.User
- func Token(v string) predicate.User
- func TokenContains(v string) predicate.User
- func TokenContainsFold(v string) predicate.User
- func TokenEQ(v string) predicate.User
- func TokenEqualFold(v string) predicate.User
- func TokenGT(v string) predicate.User
- func TokenGTE(v string) predicate.User
- func TokenHasPrefix(v string) predicate.User
- func TokenHasSuffix(v string) predicate.User
- func TokenIn(vs ...string) predicate.User
- func TokenLT(v string) predicate.User
- func TokenLTE(v string) predicate.User
- func TokenNEQ(v string) predicate.User
- func TokenNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
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" // FieldLogin holds the string denoting the login field in the database. FieldLogin = "login" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldAdmin holds the string denoting the admin field in the database. FieldAdmin = "admin" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldRefresh holds the string denoting the refresh field in the database. FieldRefresh = "refresh" // FieldExpiry holds the string denoting the expiry field in the database. FieldExpiry = "expiry" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // 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" // EdgeChatUser holds the string denoting the chat_user edge name in mutations. EdgeChatUser = "chat_user" // EdgePerms holds the string denoting the perms edge name in mutations. EdgePerms = "perms" // EdgeDeployments holds the string denoting the deployments edge name in mutations. EdgeDeployments = "deployments" // EdgeReviews holds the string denoting the reviews edge name in mutations. EdgeReviews = "reviews" // EdgeLocks holds the string denoting the locks edge name in mutations. EdgeLocks = "locks" // EdgeRepos holds the string denoting the repos edge name in mutations. EdgeRepos = "repos" // Table holds the table name of the user in the database. Table = "users" // ChatUserTable is the table that holds the chat_user relation/edge. ChatUserTable = "chat_users" // ChatUserInverseTable is the table name for the ChatUser entity. // It exists in this package in order to avoid circular dependency with the "chatuser" package. ChatUserInverseTable = "chat_users" // ChatUserColumn is the table column denoting the chat_user relation/edge. ChatUserColumn = "user_id" // PermsTable is the table that holds the perms relation/edge. PermsTable = "perms" // PermsInverseTable is the table name for the Perm entity. // It exists in this package in order to avoid circular dependency with the "perm" package. PermsInverseTable = "perms" // PermsColumn is the table column denoting the perms relation/edge. PermsColumn = "user_id" // DeploymentsTable is the table that holds the deployments relation/edge. DeploymentsTable = "deployments" // DeploymentsInverseTable is the table name for the Deployment entity. // It exists in this package in order to avoid circular dependency with the "deployment" package. DeploymentsInverseTable = "deployments" // DeploymentsColumn is the table column denoting the deployments relation/edge. DeploymentsColumn = "user_id" // ReviewsTable is the table that holds the reviews relation/edge. ReviewsTable = "reviews" // ReviewsInverseTable is the table name for the Review entity. // It exists in this package in order to avoid circular dependency with the "review" package. ReviewsInverseTable = "reviews" // ReviewsColumn is the table column denoting the reviews relation/edge. ReviewsColumn = "user_id" // LocksTable is the table that holds the locks relation/edge. LocksTable = "locks" // LocksInverseTable is the table name for the Lock entity. // It exists in this package in order to avoid circular dependency with the "lock" package. LocksInverseTable = "locks" // LocksColumn is the table column denoting the locks relation/edge. LocksColumn = "user_id" // ReposTable is the table that holds the repos relation/edge. ReposTable = "repos" // ReposInverseTable is the table name for the Repo entity. // It exists in this package in order to avoid circular dependency with the "repo" package. ReposInverseTable = "repos" // ReposColumn is the table column denoting the repos relation/edge. ReposColumn = "owner_id" )
Variables ¶
var ( // DefaultAdmin holds the default value on creation for the "admin" field. DefaultAdmin bool // DefaultHash holds the default value on creation for the "hash" field. DefaultHash func() string // 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 )
var Columns = []string{ FieldID, FieldLogin, FieldAvatar, FieldAdmin, FieldToken, FieldRefresh, FieldExpiry, FieldHash, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
func Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" 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 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 Expiry ¶
Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.
func ExpiryNotIn ¶
ExpiryNotIn applies the NotIn predicate on the "expiry" field.
func HasChatUser ¶
HasChatUser applies the HasEdge predicate on the "chat_user" edge.
func HasChatUserWith ¶
HasChatUserWith applies the HasEdge predicate on the "chat_user" edge with a given conditions (other predicates).
func HasDeployments ¶
HasDeployments applies the HasEdge predicate on the "deployments" edge.
func HasDeploymentsWith ¶
func HasDeploymentsWith(preds ...predicate.Deployment) predicate.User
HasDeploymentsWith applies the HasEdge predicate on the "deployments" edge with a given conditions (other predicates).
func HasLocksWith ¶
HasLocksWith applies the HasEdge predicate on the "locks" edge with a given conditions (other predicates).
func HasPermsWith ¶
HasPermsWith applies the HasEdge predicate on the "perms" edge with a given conditions (other predicates).
func HasReposWith ¶
HasReposWith applies the HasEdge predicate on the "repos" edge with a given conditions (other predicates).
func HasReviews ¶
HasReviews applies the HasEdge predicate on the "reviews" edge.
func HasReviewsWith ¶
HasReviewsWith applies the HasEdge predicate on the "reviews" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Login ¶
Login applies equality check predicate on the "login" field. It's identical to LoginEQ.
func LoginContains ¶
LoginContains applies the Contains predicate on the "login" field.
func LoginContainsFold ¶
LoginContainsFold applies the ContainsFold predicate on the "login" field.
func LoginEqualFold ¶
LoginEqualFold applies the EqualFold predicate on the "login" field.
func LoginHasPrefix ¶
LoginHasPrefix applies the HasPrefix predicate on the "login" field.
func LoginHasSuffix ¶
LoginHasSuffix applies the HasSuffix predicate on the "login" field.
func LoginNotIn ¶
LoginNotIn applies the NotIn predicate on the "login" field.
func Refresh ¶
Refresh applies equality check predicate on the "refresh" field. It's identical to RefreshEQ.
func RefreshContains ¶
RefreshContains applies the Contains predicate on the "refresh" field.
func RefreshContainsFold ¶
RefreshContainsFold applies the ContainsFold predicate on the "refresh" field.
func RefreshEqualFold ¶
RefreshEqualFold applies the EqualFold predicate on the "refresh" field.
func RefreshGTE ¶
RefreshGTE applies the GTE predicate on the "refresh" field.
func RefreshHasPrefix ¶
RefreshHasPrefix applies the HasPrefix predicate on the "refresh" field.
func RefreshHasSuffix ¶
RefreshHasSuffix applies the HasSuffix predicate on the "refresh" field.
func RefreshLTE ¶
RefreshLTE applies the LTE predicate on the "refresh" field.
func RefreshNEQ ¶
RefreshNEQ applies the NEQ predicate on the "refresh" field.
func RefreshNotIn ¶
RefreshNotIn applies the NotIn predicate on the "refresh" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.