Documentation
¶
Index ¶
- Constants
- Variables
- func Alias(v string) predicate.User
- func AliasContains(v string) predicate.User
- func AliasContainsFold(v string) predicate.User
- func AliasEQ(v string) predicate.User
- func AliasEqualFold(v string) predicate.User
- func AliasGT(v string) predicate.User
- func AliasGTE(v string) predicate.User
- func AliasHasPrefix(v string) predicate.User
- func AliasHasSuffix(v string) predicate.User
- func AliasIn(vs ...string) predicate.User
- func AliasIsNil() predicate.User
- func AliasLT(v string) predicate.User
- func AliasLTE(v string) predicate.User
- func AliasNEQ(v string) predicate.User
- func AliasNotIn(vs ...string) predicate.User
- func AliasNotNil() predicate.User
- func And(predicates ...predicate.User) predicate.User
- func AuthProviderEQ(v AuthProvider) predicate.User
- func AuthProviderIn(vs ...AuthProvider) predicate.User
- func AuthProviderNEQ(v AuthProvider) predicate.User
- func AuthProviderNotIn(vs ...AuthProvider) predicate.User
- func AuthProviderValidator(ap AuthProvider) error
- func AwardsIsNil() predicate.User
- func AwardsNotNil() 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 DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func DeletedBy(v string) predicate.User
- func DeletedByContains(v string) predicate.User
- func DeletedByContainsFold(v string) predicate.User
- func DeletedByEQ(v string) predicate.User
- func DeletedByEqualFold(v string) predicate.User
- func DeletedByGT(v string) predicate.User
- func DeletedByGTE(v string) predicate.User
- func DeletedByHasPrefix(v string) predicate.User
- func DeletedByHasSuffix(v string) predicate.User
- func DeletedByIn(vs ...string) predicate.User
- func DeletedByIsNil() predicate.User
- func DeletedByLT(v string) predicate.User
- func DeletedByLTE(v string) predicate.User
- func DeletedByNEQ(v string) predicate.User
- func DeletedByNotIn(vs ...string) predicate.User
- func DeletedByNotNil() predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func ExternalID(v string) predicate.User
- func ExternalIDContains(v string) predicate.User
- func ExternalIDContainsFold(v string) predicate.User
- func ExternalIDEQ(v string) predicate.User
- func ExternalIDEqualFold(v string) predicate.User
- func ExternalIDGT(v string) predicate.User
- func ExternalIDGTE(v string) predicate.User
- func ExternalIDHasPrefix(v string) predicate.User
- func ExternalIDHasSuffix(v string) predicate.User
- func ExternalIDIn(vs ...string) predicate.User
- func ExternalIDLT(v string) predicate.User
- func ExternalIDLTE(v string) predicate.User
- func ExternalIDNEQ(v string) predicate.User
- func ExternalIDNotIn(vs ...string) predicate.User
- func HasAPIKeys() predicate.User
- func HasAPIKeysWith(preds ...predicate.ApiKey) predicate.User
- func HasComments() predicate.User
- func HasCommentsWith(preds ...predicate.Comment) predicate.User
- func HasLikedPosts() predicate.User
- func HasLikedPostsWith(preds ...predicate.Post) predicate.User
- func HasPublishedPosts() predicate.User
- func HasPublishedPostsWith(preds ...predicate.Post) predicate.User
- func HasRefreshTokens() predicate.User
- func HasRefreshTokensWith(preds ...predicate.RefreshToken) predicate.User
- func HasSavedPosts() predicate.User
- func HasSavedPostsWith(preds ...predicate.Post) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func LastPostSeenCursor(v string) predicate.User
- func LastPostSeenCursorContains(v string) predicate.User
- func LastPostSeenCursorContainsFold(v string) predicate.User
- func LastPostSeenCursorEQ(v string) predicate.User
- func LastPostSeenCursorEqualFold(v string) predicate.User
- func LastPostSeenCursorGT(v string) predicate.User
- func LastPostSeenCursorGTE(v string) predicate.User
- func LastPostSeenCursorHasPrefix(v string) predicate.User
- func LastPostSeenCursorHasSuffix(v string) predicate.User
- func LastPostSeenCursorIn(vs ...string) predicate.User
- func LastPostSeenCursorIsNil() predicate.User
- func LastPostSeenCursorLT(v string) predicate.User
- func LastPostSeenCursorLTE(v string) predicate.User
- func LastPostSeenCursorNEQ(v string) predicate.User
- func LastPostSeenCursorNotIn(vs ...string) predicate.User
- func LastPostSeenCursorNotNil() predicate.User
- func LastSeenAt(v time.Time) predicate.User
- func LastSeenAtEQ(v time.Time) predicate.User
- func LastSeenAtGT(v time.Time) predicate.User
- func LastSeenAtGTE(v time.Time) predicate.User
- func LastSeenAtIn(vs ...time.Time) predicate.User
- func LastSeenAtIsNil() predicate.User
- func LastSeenAtLT(v time.Time) predicate.User
- func LastSeenAtLTE(v time.Time) predicate.User
- func LastSeenAtNEQ(v time.Time) predicate.User
- func LastSeenAtNotIn(vs ...time.Time) predicate.User
- func LastSeenAtNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ProfileImage(v string) predicate.User
- func ProfileImageContains(v string) predicate.User
- func ProfileImageContainsFold(v string) predicate.User
- func ProfileImageEQ(v string) predicate.User
- func ProfileImageEqualFold(v string) predicate.User
- func ProfileImageGT(v string) predicate.User
- func ProfileImageGTE(v string) predicate.User
- func ProfileImageHasPrefix(v string) predicate.User
- func ProfileImageHasSuffix(v string) predicate.User
- func ProfileImageIn(vs ...string) predicate.User
- func ProfileImageIsNil() predicate.User
- func ProfileImageLT(v string) predicate.User
- func ProfileImageLTE(v string) predicate.User
- func ProfileImageNEQ(v string) predicate.User
- func ProfileImageNotIn(vs ...string) predicate.User
- func ProfileImageNotNil() predicate.User
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- 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
- type AuthProvider
- type OrderOption
- func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByAlias(opts ...sql.OrderTermOption) OrderOption
- func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByExternalID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastPostSeenCursor(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
- func ByLikedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLikedPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByProfileImage(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPublishedPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRefreshTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRefreshTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySavedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySavedPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Role
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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldAlias holds the string denoting the alias field in the database. FieldAlias = "alias" // FieldProfileImage holds the string denoting the profile_image field in the database. FieldProfileImage = "profile_image" // FieldExternalID holds the string denoting the external_id field in the database. FieldExternalID = "external_id" // FieldAuthProvider holds the string denoting the auth_provider field in the database. FieldAuthProvider = "auth_provider" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldLastSeenAt holds the string denoting the last_seen_at field in the database. FieldLastSeenAt = "last_seen_at" // FieldLastPostSeenCursor holds the string denoting the last_post_seen_cursor field in the database. FieldLastPostSeenCursor = "last_post_seen_cursor" // FieldAwards holds the string denoting the awards field in the database. FieldAwards = "awards" // EdgeSavedPosts holds the string denoting the saved_posts edge name in mutations. EdgeSavedPosts = "saved_posts" // EdgeLikedPosts holds the string denoting the liked_posts edge name in mutations. EdgeLikedPosts = "liked_posts" // EdgePublishedPosts holds the string denoting the published_posts edge name in mutations. EdgePublishedPosts = "published_posts" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // EdgeAPIKeys holds the string denoting the api_keys edge name in mutations. EdgeAPIKeys = "api_keys" // EdgeRefreshTokens holds the string denoting the refresh_tokens edge name in mutations. EdgeRefreshTokens = "refresh_tokens" // Table holds the table name of the user in the database. Table = "users" // SavedPostsTable is the table that holds the saved_posts relation/edge. The primary key declared below. SavedPostsTable = "user_saved_posts" // SavedPostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. SavedPostsInverseTable = "posts" // LikedPostsTable is the table that holds the liked_posts relation/edge. The primary key declared below. LikedPostsTable = "user_liked_posts" // LikedPostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. LikedPostsInverseTable = "posts" // PublishedPostsTable is the table that holds the published_posts relation/edge. PublishedPostsTable = "posts" // PublishedPostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PublishedPostsInverseTable = "posts" // PublishedPostsColumn is the table column denoting the published_posts relation/edge. PublishedPostsColumn = "owner_id" // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "comments" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "comments" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "owner_id" // APIKeysTable is the table that holds the api_keys relation/edge. APIKeysTable = "api_keys" // APIKeysInverseTable is the table name for the ApiKey entity. // It exists in this package in order to avoid circular dependency with the "apikey" package. APIKeysInverseTable = "api_keys" // APIKeysColumn is the table column denoting the api_keys relation/edge. APIKeysColumn = "owner_id" // RefreshTokensTable is the table that holds the refresh_tokens relation/edge. RefreshTokensTable = "refresh_tokens" // RefreshTokensInverseTable is the table name for the RefreshToken entity. // It exists in this package in order to avoid circular dependency with the "refreshtoken" package. RefreshTokensInverseTable = "refresh_tokens" // RefreshTokensColumn is the table column denoting the refresh_tokens relation/edge. RefreshTokensColumn = "owner_id" )
const DefaultAuthProvider = AuthProviderTWITCH
AuthProviderTWITCH is the default value of the AuthProvider enum.
const DefaultRole = RoleGUEST
RoleGUEST is the default value of the Role enum.
Variables ¶
var ( // SavedPostsPrimaryKey and SavedPostsColumn2 are the table columns denoting the // primary key for the saved_posts relation (M2M). SavedPostsPrimaryKey = []string{"user_id", "post_id"} // LikedPostsPrimaryKey and LikedPostsColumn2 are the table columns denoting the // primary key for the liked_posts relation (M2M). LikedPostsPrimaryKey = []string{"user_id", "post_id"} )
var ( Hooks [3]ent.Hook Interceptors [1]ent.Interceptor Policy ent.Policy // 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 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // UpdateDefaultLastSeenAt holds the default value on update for the "last_seen_at" field. UpdateDefaultLastSeenAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/caliecode/la-clipasa/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldUpdatedAt, FieldCreatedAt, FieldDeletedAt, FieldDeletedBy, FieldDisplayName, FieldAlias, FieldProfileImage, FieldExternalID, FieldAuthProvider, FieldRole, FieldLastSeenAt, FieldLastPostSeenCursor, FieldAwards, }
Columns holds all SQL columns for user fields.
Functions ¶
func Alias ¶
Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.
func AliasContains ¶
AliasContains applies the Contains predicate on the "alias" field.
func AliasContainsFold ¶
AliasContainsFold applies the ContainsFold predicate on the "alias" field.
func AliasEqualFold ¶
AliasEqualFold applies the EqualFold predicate on the "alias" field.
func AliasHasPrefix ¶
AliasHasPrefix applies the HasPrefix predicate on the "alias" field.
func AliasHasSuffix ¶
AliasHasSuffix applies the HasSuffix predicate on the "alias" field.
func AliasIsNil ¶
AliasIsNil applies the IsNil predicate on the "alias" field.
func AliasNotIn ¶
AliasNotIn applies the NotIn predicate on the "alias" field.
func AliasNotNil ¶
AliasNotNil applies the NotNil predicate on the "alias" field.
func AuthProviderEQ ¶
func AuthProviderEQ(v AuthProvider) predicate.User
AuthProviderEQ applies the EQ predicate on the "auth_provider" field.
func AuthProviderIn ¶
func AuthProviderIn(vs ...AuthProvider) predicate.User
AuthProviderIn applies the In predicate on the "auth_provider" field.
func AuthProviderNEQ ¶
func AuthProviderNEQ(v AuthProvider) predicate.User
AuthProviderNEQ applies the NEQ predicate on the "auth_provider" field.
func AuthProviderNotIn ¶
func AuthProviderNotIn(vs ...AuthProvider) predicate.User
AuthProviderNotIn applies the NotIn predicate on the "auth_provider" field.
func AuthProviderValidator ¶
func AuthProviderValidator(ap AuthProvider) error
AuthProviderValidator is a validator for the "auth_provider" field enum values. It is called by the builders before save.
func AwardsIsNil ¶
AwardsIsNil applies the IsNil predicate on the "awards" field.
func AwardsNotNil ¶
AwardsNotNil applies the NotNil predicate on the "awards" 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func ExternalID ¶
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDContains ¶
ExternalIDContains applies the Contains predicate on the "external_id" field.
func ExternalIDContainsFold ¶
ExternalIDContainsFold applies the ContainsFold predicate on the "external_id" field.
func ExternalIDEQ ¶
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDEqualFold ¶
ExternalIDEqualFold applies the EqualFold predicate on the "external_id" field.
func ExternalIDGT ¶
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDHasPrefix ¶
ExternalIDHasPrefix applies the HasPrefix predicate on the "external_id" field.
func ExternalIDHasSuffix ¶
ExternalIDHasSuffix applies the HasSuffix predicate on the "external_id" field.
func ExternalIDIn ¶
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDLT ¶
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func HasAPIKeys ¶
HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
func HasAPIKeysWith ¶
HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasLikedPosts ¶
HasLikedPosts applies the HasEdge predicate on the "liked_posts" edge.
func HasLikedPostsWith ¶
HasLikedPostsWith applies the HasEdge predicate on the "liked_posts" edge with a given conditions (other predicates).
func HasPublishedPosts ¶
HasPublishedPosts applies the HasEdge predicate on the "published_posts" edge.
func HasPublishedPostsWith ¶
HasPublishedPostsWith applies the HasEdge predicate on the "published_posts" edge with a given conditions (other predicates).
func HasRefreshTokens ¶
HasRefreshTokens applies the HasEdge predicate on the "refresh_tokens" edge.
func HasRefreshTokensWith ¶
func HasRefreshTokensWith(preds ...predicate.RefreshToken) predicate.User
HasRefreshTokensWith applies the HasEdge predicate on the "refresh_tokens" edge with a given conditions (other predicates).
func HasSavedPosts ¶
HasSavedPosts applies the HasEdge predicate on the "saved_posts" edge.
func HasSavedPostsWith ¶
HasSavedPostsWith applies the HasEdge predicate on the "saved_posts" edge with a given conditions (other predicates).
func LastPostSeenCursor ¶
LastPostSeenCursor applies equality check predicate on the "last_post_seen_cursor" field. It's identical to LastPostSeenCursorEQ.
func LastPostSeenCursorContains ¶
LastPostSeenCursorContains applies the Contains predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorContainsFold ¶
LastPostSeenCursorContainsFold applies the ContainsFold predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorEQ ¶
LastPostSeenCursorEQ applies the EQ predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorEqualFold ¶
LastPostSeenCursorEqualFold applies the EqualFold predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorGT ¶
LastPostSeenCursorGT applies the GT predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorGTE ¶
LastPostSeenCursorGTE applies the GTE predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorHasPrefix ¶
LastPostSeenCursorHasPrefix applies the HasPrefix predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorHasSuffix ¶
LastPostSeenCursorHasSuffix applies the HasSuffix predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorIn ¶
LastPostSeenCursorIn applies the In predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorIsNil ¶
LastPostSeenCursorIsNil applies the IsNil predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorLT ¶
LastPostSeenCursorLT applies the LT predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorLTE ¶
LastPostSeenCursorLTE applies the LTE predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorNEQ ¶
LastPostSeenCursorNEQ applies the NEQ predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorNotIn ¶
LastPostSeenCursorNotIn applies the NotIn predicate on the "last_post_seen_cursor" field.
func LastPostSeenCursorNotNil ¶
LastPostSeenCursorNotNil applies the NotNil predicate on the "last_post_seen_cursor" field.
func LastSeenAt ¶
LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.
func LastSeenAtEQ ¶
LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.
func LastSeenAtGT ¶
LastSeenAtGT applies the GT predicate on the "last_seen_at" field.
func LastSeenAtGTE ¶
LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.
func LastSeenAtIn ¶
LastSeenAtIn applies the In predicate on the "last_seen_at" field.
func LastSeenAtIsNil ¶
LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.
func LastSeenAtLT ¶
LastSeenAtLT applies the LT predicate on the "last_seen_at" field.
func LastSeenAtLTE ¶
LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.
func LastSeenAtNEQ ¶
LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.
func LastSeenAtNotIn ¶
LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.
func LastSeenAtNotNil ¶
LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.
func ProfileImage ¶
ProfileImage applies equality check predicate on the "profile_image" field. It's identical to ProfileImageEQ.
func ProfileImageContains ¶
ProfileImageContains applies the Contains predicate on the "profile_image" field.
func ProfileImageContainsFold ¶
ProfileImageContainsFold applies the ContainsFold predicate on the "profile_image" field.
func ProfileImageEQ ¶
ProfileImageEQ applies the EQ predicate on the "profile_image" field.
func ProfileImageEqualFold ¶
ProfileImageEqualFold applies the EqualFold predicate on the "profile_image" field.
func ProfileImageGT ¶
ProfileImageGT applies the GT predicate on the "profile_image" field.
func ProfileImageGTE ¶
ProfileImageGTE applies the GTE predicate on the "profile_image" field.
func ProfileImageHasPrefix ¶
ProfileImageHasPrefix applies the HasPrefix predicate on the "profile_image" field.
func ProfileImageHasSuffix ¶
ProfileImageHasSuffix applies the HasSuffix predicate on the "profile_image" field.
func ProfileImageIn ¶
ProfileImageIn applies the In predicate on the "profile_image" field.
func ProfileImageIsNil ¶
ProfileImageIsNil applies the IsNil predicate on the "profile_image" field.
func ProfileImageLT ¶
ProfileImageLT applies the LT predicate on the "profile_image" field.
func ProfileImageLTE ¶
ProfileImageLTE applies the LTE predicate on the "profile_image" field.
func ProfileImageNEQ ¶
ProfileImageNEQ applies the NEQ predicate on the "profile_image" field.
func ProfileImageNotIn ¶
ProfileImageNotIn applies the NotIn predicate on the "profile_image" field.
func ProfileImageNotNil ¶
ProfileImageNotNil applies the NotNil predicate on the "profile_image" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
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 AuthProvider ¶
type AuthProvider string
AuthProvider defines the type for the "auth_provider" enum field.
const (
AuthProviderTWITCH AuthProvider = "TWITCH"
)
AuthProvider values.
func AllAuthProviders ¶
func AllAuthProviders() []AuthProvider
AllAuthProviders returns all AuthProvider values.
func (AuthProvider) MarshalGQL ¶
func (e AuthProvider) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (AuthProvider) String ¶
func (ap AuthProvider) String() string
func (*AuthProvider) UnmarshalGQL ¶
func (e *AuthProvider) UnmarshalGQL(val interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAPIKeys ¶
func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAPIKeys orders the results by api_keys terms.
func ByAPIKeysCount ¶
func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
ByAPIKeysCount orders the results by api_keys count.
func ByAlias ¶
func ByAlias(opts ...sql.OrderTermOption) OrderOption
ByAlias orders the results by the alias field.
func ByAuthProvider ¶
func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
ByAuthProvider orders the results by the auth_provider field.
func ByComments ¶
func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByComments orders the results by comments terms.
func ByCommentsCount ¶
func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
ByCommentsCount orders the results by comments count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByExternalID ¶
func ByExternalID(opts ...sql.OrderTermOption) OrderOption
ByExternalID orders the results by the external_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastPostSeenCursor ¶
func ByLastPostSeenCursor(opts ...sql.OrderTermOption) OrderOption
ByLastPostSeenCursor orders the results by the last_post_seen_cursor field.
func ByLastSeenAt ¶
func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
ByLastSeenAt orders the results by the last_seen_at field.
func ByLikedPosts ¶
func ByLikedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLikedPosts orders the results by liked_posts terms.
func ByLikedPostsCount ¶
func ByLikedPostsCount(opts ...sql.OrderTermOption) OrderOption
ByLikedPostsCount orders the results by liked_posts count.
func ByProfileImage ¶
func ByProfileImage(opts ...sql.OrderTermOption) OrderOption
ByProfileImage orders the results by the profile_image field.
func ByPublishedPosts ¶
func ByPublishedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPublishedPosts orders the results by published_posts terms.
func ByPublishedPostsCount ¶
func ByPublishedPostsCount(opts ...sql.OrderTermOption) OrderOption
ByPublishedPostsCount orders the results by published_posts count.
func ByRefreshTokens ¶
func ByRefreshTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRefreshTokens orders the results by refresh_tokens terms.
func ByRefreshTokensCount ¶
func ByRefreshTokensCount(opts ...sql.OrderTermOption) OrderOption
ByRefreshTokensCount orders the results by refresh_tokens count.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySavedPosts ¶
func BySavedPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySavedPosts orders the results by saved_posts terms.
func BySavedPostsCount ¶
func BySavedPostsCount(opts ...sql.OrderTermOption) OrderOption
BySavedPostsCount orders the results by saved_posts count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
type Role ¶
type Role string
Role defines the type for the "role" enum field.
const ( RoleGUEST Role = "GUEST" RoleUSER Role = "USER" RoleADMIN Role = "ADMIN" RoleMODERATOR Role = "MODERATOR" )
Role values.
func (Role) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.