Documentation ¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.Account
- func AdminEQ(v bool) predicate.Account
- func AdminNEQ(v bool) predicate.Account
- func And(predicates ...predicate.Account) predicate.Account
- func Bio(v string) predicate.Account
- func BioContains(v string) predicate.Account
- func BioContainsFold(v string) predicate.Account
- func BioEQ(v string) predicate.Account
- func BioEqualFold(v string) predicate.Account
- func BioGT(v string) predicate.Account
- func BioGTE(v string) predicate.Account
- func BioHasPrefix(v string) predicate.Account
- func BioHasSuffix(v string) predicate.Account
- func BioIn(vs ...string) predicate.Account
- func BioIsNil() predicate.Account
- func BioLT(v string) predicate.Account
- func BioLTE(v string) predicate.Account
- func BioNEQ(v string) predicate.Account
- func BioNotIn(vs ...string) predicate.Account
- func BioNotNil() predicate.Account
- func CreatedAt(v time.Time) predicate.Account
- func CreatedAtEQ(v time.Time) predicate.Account
- func CreatedAtGT(v time.Time) predicate.Account
- func CreatedAtGTE(v time.Time) predicate.Account
- func CreatedAtIn(vs ...time.Time) predicate.Account
- func CreatedAtLT(v time.Time) predicate.Account
- func CreatedAtLTE(v time.Time) predicate.Account
- func CreatedAtNEQ(v time.Time) predicate.Account
- func CreatedAtNotIn(vs ...time.Time) predicate.Account
- func DeletedAt(v time.Time) predicate.Account
- func DeletedAtEQ(v time.Time) predicate.Account
- func DeletedAtGT(v time.Time) predicate.Account
- func DeletedAtGTE(v time.Time) predicate.Account
- func DeletedAtIn(vs ...time.Time) predicate.Account
- func DeletedAtIsNil() predicate.Account
- func DeletedAtLT(v time.Time) predicate.Account
- func DeletedAtLTE(v time.Time) predicate.Account
- func DeletedAtNEQ(v time.Time) predicate.Account
- func DeletedAtNotIn(vs ...time.Time) predicate.Account
- func DeletedAtNotNil() predicate.Account
- func Email(v string) predicate.Account
- func EmailContains(v string) predicate.Account
- func EmailContainsFold(v string) predicate.Account
- func EmailEQ(v string) predicate.Account
- func EmailEqualFold(v string) predicate.Account
- func EmailGT(v string) predicate.Account
- func EmailGTE(v string) predicate.Account
- func EmailHasPrefix(v string) predicate.Account
- func EmailHasSuffix(v string) predicate.Account
- func EmailIn(vs ...string) predicate.Account
- func EmailLT(v string) predicate.Account
- func EmailLTE(v string) predicate.Account
- func EmailNEQ(v string) predicate.Account
- func EmailNotIn(vs ...string) predicate.Account
- func HasAuthentication() predicate.Account
- func HasAuthenticationWith(preds ...predicate.Authentication) predicate.Account
- func HasPosts() predicate.Account
- func HasPostsWith(preds ...predicate.Post) predicate.Account
- func HasReacts() predicate.Account
- func HasReactsWith(preds ...predicate.React) predicate.Account
- func HasRoles() predicate.Account
- func HasRolesWith(preds ...predicate.Role) predicate.Account
- func HasSubscriptions() predicate.Account
- func HasSubscriptionsWith(preds ...predicate.Subscription) predicate.Account
- func HasTags() predicate.Account
- func HasTagsWith(preds ...predicate.Tag) predicate.Account
- func ID(id xid.ID) predicate.Account
- func IDEQ(id xid.ID) predicate.Account
- func IDGT(id xid.ID) predicate.Account
- func IDGTE(id xid.ID) predicate.Account
- func IDIn(ids ...xid.ID) predicate.Account
- func IDLT(id xid.ID) predicate.Account
- func IDLTE(id xid.ID) predicate.Account
- func IDNEQ(id xid.ID) predicate.Account
- func IDNotIn(ids ...xid.ID) predicate.Account
- func Name(v string) predicate.Account
- func NameContains(v string) predicate.Account
- func NameContainsFold(v string) predicate.Account
- func NameEQ(v string) predicate.Account
- func NameEqualFold(v string) predicate.Account
- func NameGT(v string) predicate.Account
- func NameGTE(v string) predicate.Account
- func NameHasPrefix(v string) predicate.Account
- func NameHasSuffix(v string) predicate.Account
- func NameIn(vs ...string) predicate.Account
- func NameLT(v string) predicate.Account
- func NameLTE(v string) predicate.Account
- func NameNEQ(v string) predicate.Account
- func NameNotIn(vs ...string) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func UpdatedAt(v time.Time) predicate.Account
- func UpdatedAtEQ(v time.Time) predicate.Account
- func UpdatedAtGT(v time.Time) predicate.Account
- func UpdatedAtGTE(v time.Time) predicate.Account
- func UpdatedAtIn(vs ...time.Time) predicate.Account
- func UpdatedAtLT(v time.Time) predicate.Account
- func UpdatedAtLTE(v time.Time) predicate.Account
- func UpdatedAtNEQ(v time.Time) predicate.Account
- func UpdatedAtNotIn(vs ...time.Time) predicate.Account
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the account type in the database. Label = "account" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldBio holds the string denoting the bio field in the database. FieldBio = "bio" // FieldAdmin holds the string denoting the admin field in the database. FieldAdmin = "admin" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgeReacts holds the string denoting the reacts edge name in mutations. EdgeReacts = "reacts" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgeSubscriptions holds the string denoting the subscriptions edge name in mutations. EdgeSubscriptions = "subscriptions" // EdgeAuthentication holds the string denoting the authentication edge name in mutations. EdgeAuthentication = "authentication" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the account in the database. Table = "accounts" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "account_posts" // ReactsTable is the table that holds the reacts relation/edge. ReactsTable = "reacts" // ReactsInverseTable is the table name for the React entity. // It exists in this package in order to avoid circular dependency with the "react" package. ReactsInverseTable = "reacts" // ReactsColumn is the table column denoting the reacts relation/edge. ReactsColumn = "account_reacts" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "role_accounts" // 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" // SubscriptionsTable is the table that holds the subscriptions relation/edge. SubscriptionsTable = "subscriptions" // SubscriptionsInverseTable is the table name for the Subscription entity. // It exists in this package in order to avoid circular dependency with the "subscription" package. SubscriptionsInverseTable = "subscriptions" // SubscriptionsColumn is the table column denoting the subscriptions relation/edge. SubscriptionsColumn = "account_subscriptions" // AuthenticationTable is the table that holds the authentication relation/edge. AuthenticationTable = "authentications" // AuthenticationInverseTable is the table name for the Authentication entity. // It exists in this package in order to avoid circular dependency with the "authentication" package. AuthenticationInverseTable = "authentications" // AuthenticationColumn is the table column denoting the authentication relation/edge. AuthenticationColumn = "account_authentication" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "account_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" )
Variables ¶
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"role_id", "account_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"account_id", "tag_id"} )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultAdmin holds the default value on creation for the "admin" field. DefaultAdmin bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldEmail, FieldName, FieldBio, FieldAdmin, }
Columns holds all SQL columns for account fields.
Functions ¶
func Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func BioContains ¶
BioContains applies the Contains predicate on the "bio" field.
func BioContainsFold ¶
BioContainsFold applies the ContainsFold predicate on the "bio" field.
func BioEqualFold ¶
BioEqualFold applies the EqualFold predicate on the "bio" field.
func BioHasPrefix ¶
BioHasPrefix applies the HasPrefix predicate on the "bio" field.
func BioHasSuffix ¶
BioHasSuffix applies the HasSuffix predicate on the "bio" 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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasAuthentication ¶
HasAuthentication applies the HasEdge predicate on the "authentication" edge.
func HasAuthenticationWith ¶
func HasAuthenticationWith(preds ...predicate.Authentication) predicate.Account
HasAuthenticationWith applies the HasEdge predicate on the "authentication" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func HasReactsWith ¶
HasReactsWith applies the HasEdge predicate on the "reacts" 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 HasSubscriptions ¶
HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.
func HasSubscriptionsWith ¶
func HasSubscriptionsWith(preds ...predicate.Subscription) predicate.Account
HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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.