Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) 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 Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasCreatedBy() predicate.User
- func HasCreatedByWith(preds ...predicate.GithubApp) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func HasOauth2Codes() predicate.User
- func HasOauth2CodesWith(preds ...predicate.Oauth2Code) predicate.User
- func HasOauth2Tokens() predicate.User
- func HasOauth2TokensWith(preds ...predicate.Oauth2Token) predicate.User
- func HasTeams() predicate.User
- func HasTeamsWith(preds ...predicate.Team) 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PasswordHash(v string) predicate.User
- func PasswordHashContains(v string) predicate.User
- func PasswordHashContainsFold(v string) predicate.User
- func PasswordHashEQ(v string) predicate.User
- func PasswordHashEqualFold(v string) predicate.User
- func PasswordHashGT(v string) predicate.User
- func PasswordHashGTE(v string) predicate.User
- func PasswordHashHasPrefix(v string) predicate.User
- func PasswordHashHasSuffix(v string) predicate.User
- func PasswordHashIn(vs ...string) predicate.User
- func PasswordHashLT(v string) predicate.User
- func PasswordHashLTE(v string) predicate.User
- func PasswordHashNEQ(v string) predicate.User
- func PasswordHashNotIn(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
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreatedByCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOauth2Codes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauth2CodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOauth2Tokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauth2TokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // 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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // EdgeOauth2Tokens holds the string denoting the oauth2_tokens edge name in mutations. EdgeOauth2Tokens = "oauth2_tokens" // EdgeOauth2Codes holds the string denoting the oauth2_codes edge name in mutations. EdgeOauth2Codes = "oauth2_codes" // EdgeCreatedBy holds the string denoting the created_by edge name in mutations. EdgeCreatedBy = "created_by" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeTeams holds the string denoting the teams edge name in mutations. EdgeTeams = "teams" // Table holds the table name of the user in the database. Table = "users" // Oauth2TokensTable is the table that holds the oauth2_tokens relation/edge. Oauth2TokensTable = "oauth2_tokens" // Oauth2TokensInverseTable is the table name for the Oauth2Token entity. // It exists in this package in order to avoid circular dependency with the "oauth2token" package. Oauth2TokensInverseTable = "oauth2_tokens" // Oauth2TokensColumn is the table column denoting the oauth2_tokens relation/edge. Oauth2TokensColumn = "user_oauth2_tokens" // Oauth2CodesTable is the table that holds the oauth2_codes relation/edge. Oauth2CodesTable = "oauth2_codes" // Oauth2CodesInverseTable is the table name for the Oauth2Code entity. // It exists in this package in order to avoid circular dependency with the "oauth2code" package. Oauth2CodesInverseTable = "oauth2_codes" // Oauth2CodesColumn is the table column denoting the oauth2_codes relation/edge. Oauth2CodesColumn = "user_oauth2_codes" // CreatedByTable is the table that holds the created_by relation/edge. CreatedByTable = "github_apps" // CreatedByInverseTable is the table name for the GithubApp entity. // It exists in this package in order to avoid circular dependency with the "githubapp" package. CreatedByInverseTable = "github_apps" // CreatedByColumn is the table column denoting the created_by relation/edge. CreatedByColumn = "created_by" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "user_groups" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "user_teams" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" )
Variables ¶
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"user_id", "group_id"} // TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the // primary key for the teams relation (M2M). TeamsPrimaryKey = []string{"user_id", "team_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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldEmail, FieldPasswordHash, }
Columns holds all SQL columns for user fields.
Functions ¶
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 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 HasCreatedBy ¶
HasCreatedBy applies the HasEdge predicate on the "created_by" edge.
func HasCreatedByWith ¶
HasCreatedByWith applies the HasEdge predicate on the "created_by" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasOauth2Codes ¶
HasOauth2Codes applies the HasEdge predicate on the "oauth2_codes" edge.
func HasOauth2CodesWith ¶
func HasOauth2CodesWith(preds ...predicate.Oauth2Code) predicate.User
HasOauth2CodesWith applies the HasEdge predicate on the "oauth2_codes" edge with a given conditions (other predicates).
func HasOauth2Tokens ¶
HasOauth2Tokens applies the HasEdge predicate on the "oauth2_tokens" edge.
func HasOauth2TokensWith ¶
func HasOauth2TokensWith(preds ...predicate.Oauth2Token) predicate.User
HasOauth2TokensWith applies the HasEdge predicate on the "oauth2_tokens" edge with a given conditions (other predicates).
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreatedBy orders the results by created_by terms.
func ByCreatedByCount ¶
func ByCreatedByCount(opts ...sql.OrderTermOption) OrderOption
ByCreatedByCount orders the results by created_by count.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOauth2Codes ¶
func ByOauth2Codes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOauth2Codes orders the results by oauth2_codes terms.
func ByOauth2CodesCount ¶
func ByOauth2CodesCount(opts ...sql.OrderTermOption) OrderOption
ByOauth2CodesCount orders the results by oauth2_codes count.
func ByOauth2Tokens ¶
func ByOauth2Tokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOauth2Tokens orders the results by oauth2_tokens terms.
func ByOauth2TokensCount ¶
func ByOauth2TokensCount(opts ...sql.OrderTermOption) OrderOption
ByOauth2TokensCount orders the results by oauth2_tokens count.
func ByPasswordHash ¶
func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
ByPasswordHash orders the results by the password_hash field.
func ByTeams ¶
func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeams orders the results by teams terms.
func ByTeamsCount ¶
func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamsCount orders the results by teams count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.