Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Admin) predicate.Admin
- func CreatedAt(v time.Time) predicate.Admin
- func CreatedAtEQ(v time.Time) predicate.Admin
- func CreatedAtGT(v time.Time) predicate.Admin
- func CreatedAtGTE(v time.Time) predicate.Admin
- func CreatedAtIn(vs ...time.Time) predicate.Admin
- func CreatedAtLT(v time.Time) predicate.Admin
- func CreatedAtLTE(v time.Time) predicate.Admin
- func CreatedAtNEQ(v time.Time) predicate.Admin
- func CreatedAtNotIn(vs ...time.Time) predicate.Admin
- func HasImportedParticipants() predicate.Admin
- func HasImportedParticipantsWith(preds ...predicate.Participant) predicate.Admin
- func HasProjects() predicate.Admin
- func HasProjectsWith(preds ...predicate.Project) predicate.Admin
- func HasTemplates() predicate.Admin
- func HasTemplatesWith(preds ...predicate.Template) predicate.Admin
- func ID(id string) predicate.Admin
- func IDEQ(id string) predicate.Admin
- func IDGT(id string) predicate.Admin
- func IDGTE(id string) predicate.Admin
- func IDIn(ids ...string) predicate.Admin
- func IDLT(id string) predicate.Admin
- func IDLTE(id string) predicate.Admin
- func IDNEQ(id string) predicate.Admin
- func IDNotIn(ids ...string) predicate.Admin
- func Name(v string) predicate.Admin
- func NameContains(v string) predicate.Admin
- func NameContainsFold(v string) predicate.Admin
- func NameEQ(v string) predicate.Admin
- func NameEqualFold(v string) predicate.Admin
- func NameGT(v string) predicate.Admin
- func NameGTE(v string) predicate.Admin
- func NameHasPrefix(v string) predicate.Admin
- func NameHasSuffix(v string) predicate.Admin
- func NameIn(vs ...string) predicate.Admin
- func NameLT(v string) predicate.Admin
- func NameLTE(v string) predicate.Admin
- func NameNEQ(v string) predicate.Admin
- func NameNotIn(vs ...string) predicate.Admin
- func Not(p predicate.Admin) predicate.Admin
- func Or(predicates ...predicate.Admin) predicate.Admin
- func UpdatedAt(v time.Time) predicate.Admin
- func UpdatedAtEQ(v time.Time) predicate.Admin
- func UpdatedAtGT(v time.Time) predicate.Admin
- func UpdatedAtGTE(v time.Time) predicate.Admin
- func UpdatedAtIn(vs ...time.Time) predicate.Admin
- func UpdatedAtLT(v time.Time) predicate.Admin
- func UpdatedAtLTE(v time.Time) predicate.Admin
- func UpdatedAtNEQ(v time.Time) predicate.Admin
- func UpdatedAtNotIn(vs ...time.Time) predicate.Admin
- func Username(v string) predicate.Admin
- func UsernameContains(v string) predicate.Admin
- func UsernameContainsFold(v string) predicate.Admin
- func UsernameEQ(v string) predicate.Admin
- func UsernameEqualFold(v string) predicate.Admin
- func UsernameGT(v string) predicate.Admin
- func UsernameGTE(v string) predicate.Admin
- func UsernameHasPrefix(v string) predicate.Admin
- func UsernameHasSuffix(v string) predicate.Admin
- func UsernameIn(vs ...string) predicate.Admin
- func UsernameLT(v string) predicate.Admin
- func UsernameLTE(v string) predicate.Admin
- func UsernameNEQ(v string) predicate.Admin
- func UsernameNotIn(vs ...string) predicate.Admin
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the admin type in the database. Label = "admin" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeTemplates holds the string denoting the templates edge name in mutations. EdgeTemplates = "templates" // EdgeImportedParticipants holds the string denoting the importedparticipants edge name in mutations. EdgeImportedParticipants = "importedParticipants" // Table holds the table name of the admin in the database. Table = "admins" // ProjectsTable is the table the holds the projects relation/edge. ProjectsTable = "projects" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "admin_projects" // TemplatesTable is the table the holds the templates relation/edge. TemplatesTable = "templates" // TemplatesInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplatesInverseTable = "templates" // TemplatesColumn is the table column denoting the templates relation/edge. TemplatesColumn = "admin_templates" // ImportedParticipantsTable is the table the holds the importedParticipants relation/edge. The primary key declared below. ImportedParticipantsTable = "admin_importedParticipants" // ImportedParticipantsInverseTable is the table name for the Participant entity. // It exists in this package in order to avoid circular dependency with the "participant" package. ImportedParticipantsInverseTable = "participants" )
Variables ¶
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 // 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, FieldName, FieldUsername, }
Columns holds all SQL columns for admin fields.
var ( // ImportedParticipantsPrimaryKey and ImportedParticipantsColumn2 are the table columns denoting the // primary key for the importedParticipants relation (M2M). ImportedParticipantsPrimaryKey = []string{"admin_id", "participant_id"} )
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 HasImportedParticipants ¶
HasImportedParticipants applies the HasEdge predicate on the "importedParticipants" edge.
func HasImportedParticipantsWith ¶
func HasImportedParticipantsWith(preds ...predicate.Participant) predicate.Admin
HasImportedParticipantsWith applies the HasEdge predicate on the "importedParticipants" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasTemplates ¶
HasTemplates applies the HasEdge predicate on the "templates" edge.
func HasTemplatesWith ¶
HasTemplatesWith applies the HasEdge predicate on the "templates" 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 Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.