user

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for user fields.

Functions

func Admin

func Admin(v bool) predicate.User

Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.

func AdminEQ

func AdminEQ(v bool) predicate.User

AdminEQ applies the EQ predicate on the "admin" field.

func AdminNEQ

func AdminNEQ(v bool) predicate.User

AdminNEQ applies the NEQ predicate on the "admin" field.

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v string) predicate.User

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarContains

func AvatarContains(v string) predicate.User

AvatarContains applies the Contains predicate on the "avatar" field.

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.User

AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.

func AvatarEQ

func AvatarEQ(v string) predicate.User

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.User

AvatarEqualFold applies the EqualFold predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v string) predicate.User

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v string) predicate.User

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.User

AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.User

AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.

func AvatarIn

func AvatarIn(vs ...string) predicate.User

AvatarIn applies the In predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v string) predicate.User

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v string) predicate.User

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v string) predicate.User

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

func AvatarNotIn(vs ...string) predicate.User

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Expiry

func Expiry(v time.Time) predicate.User

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.User

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.User

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.User

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.User

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.User

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.User

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.User

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.User

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func HasChatUser

func HasChatUser() predicate.User

HasChatUser applies the HasEdge predicate on the "chat_user" edge.

func HasChatUserWith

func HasChatUserWith(preds ...predicate.ChatUser) predicate.User

HasChatUserWith applies the HasEdge predicate on the "chat_user" edge with a given conditions (other predicates).

func HasDeployments

func HasDeployments() predicate.User

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 HasLocks

func HasLocks() predicate.User

HasLocks applies the HasEdge predicate on the "locks" edge.

func HasLocksWith

func HasLocksWith(preds ...predicate.Lock) predicate.User

HasLocksWith applies the HasEdge predicate on the "locks" edge with a given conditions (other predicates).

func HasPerms

func HasPerms() predicate.User

HasPerms applies the HasEdge predicate on the "perms" edge.

func HasPermsWith

func HasPermsWith(preds ...predicate.Perm) predicate.User

HasPermsWith applies the HasEdge predicate on the "perms" edge with a given conditions (other predicates).

func HasRepos

func HasRepos() predicate.User

HasRepos applies the HasEdge predicate on the "repos" edge.

func HasReposWith

func HasReposWith(preds ...predicate.Repo) predicate.User

HasReposWith applies the HasEdge predicate on the "repos" edge with a given conditions (other predicates).

func HasReviews

func HasReviews() predicate.User

HasReviews applies the HasEdge predicate on the "reviews" edge.

func HasReviewsWith

func HasReviewsWith(preds ...predicate.Review) predicate.User

HasReviewsWith applies the HasEdge predicate on the "reviews" edge with a given conditions (other predicates).

func Hash

func Hash(v string) predicate.User

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.User

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.User

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.User

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.User

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.User

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.User

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.User

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.User

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.User

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.User

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.User

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.User

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.User

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int64) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Login

func Login(v string) predicate.User

Login applies equality check predicate on the "login" field. It's identical to LoginEQ.

func LoginContains

func LoginContains(v string) predicate.User

LoginContains applies the Contains predicate on the "login" field.

func LoginContainsFold

func LoginContainsFold(v string) predicate.User

LoginContainsFold applies the ContainsFold predicate on the "login" field.

func LoginEQ

func LoginEQ(v string) predicate.User

LoginEQ applies the EQ predicate on the "login" field.

func LoginEqualFold

func LoginEqualFold(v string) predicate.User

LoginEqualFold applies the EqualFold predicate on the "login" field.

func LoginGT

func LoginGT(v string) predicate.User

LoginGT applies the GT predicate on the "login" field.

func LoginGTE

func LoginGTE(v string) predicate.User

LoginGTE applies the GTE predicate on the "login" field.

func LoginHasPrefix

func LoginHasPrefix(v string) predicate.User

LoginHasPrefix applies the HasPrefix predicate on the "login" field.

func LoginHasSuffix

func LoginHasSuffix(v string) predicate.User

LoginHasSuffix applies the HasSuffix predicate on the "login" field.

func LoginIn

func LoginIn(vs ...string) predicate.User

LoginIn applies the In predicate on the "login" field.

func LoginLT

func LoginLT(v string) predicate.User

LoginLT applies the LT predicate on the "login" field.

func LoginLTE

func LoginLTE(v string) predicate.User

LoginLTE applies the LTE predicate on the "login" field.

func LoginNEQ

func LoginNEQ(v string) predicate.User

LoginNEQ applies the NEQ predicate on the "login" field.

func LoginNotIn

func LoginNotIn(vs ...string) predicate.User

LoginNotIn applies the NotIn predicate on the "login" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Refresh

func Refresh(v string) predicate.User

Refresh applies equality check predicate on the "refresh" field. It's identical to RefreshEQ.

func RefreshContains

func RefreshContains(v string) predicate.User

RefreshContains applies the Contains predicate on the "refresh" field.

func RefreshContainsFold

func RefreshContainsFold(v string) predicate.User

RefreshContainsFold applies the ContainsFold predicate on the "refresh" field.

func RefreshEQ

func RefreshEQ(v string) predicate.User

RefreshEQ applies the EQ predicate on the "refresh" field.

func RefreshEqualFold

func RefreshEqualFold(v string) predicate.User

RefreshEqualFold applies the EqualFold predicate on the "refresh" field.

func RefreshGT

func RefreshGT(v string) predicate.User

RefreshGT applies the GT predicate on the "refresh" field.

func RefreshGTE

func RefreshGTE(v string) predicate.User

RefreshGTE applies the GTE predicate on the "refresh" field.

func RefreshHasPrefix

func RefreshHasPrefix(v string) predicate.User

RefreshHasPrefix applies the HasPrefix predicate on the "refresh" field.

func RefreshHasSuffix

func RefreshHasSuffix(v string) predicate.User

RefreshHasSuffix applies the HasSuffix predicate on the "refresh" field.

func RefreshIn

func RefreshIn(vs ...string) predicate.User

RefreshIn applies the In predicate on the "refresh" field.

func RefreshLT

func RefreshLT(v string) predicate.User

RefreshLT applies the LT predicate on the "refresh" field.

func RefreshLTE

func RefreshLTE(v string) predicate.User

RefreshLTE applies the LTE predicate on the "refresh" field.

func RefreshNEQ

func RefreshNEQ(v string) predicate.User

RefreshNEQ applies the NEQ predicate on the "refresh" field.

func RefreshNotIn

func RefreshNotIn(vs ...string) predicate.User

RefreshNotIn applies the NotIn predicate on the "refresh" field.

func Token

func Token(v string) predicate.User

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.User

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.User

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.User

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.User

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.User

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.User

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.User

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.User

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.User

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.User

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.User

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.User

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.User

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL