Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func CreatedAt(v time.Time) predicate.Event
- func CreatedAtEQ(v time.Time) predicate.Event
- func CreatedAtGT(v time.Time) predicate.Event
- func CreatedAtGTE(v time.Time) predicate.Event
- func CreatedAtIn(vs ...time.Time) predicate.Event
- func CreatedAtLT(v time.Time) predicate.Event
- func CreatedAtLTE(v time.Time) predicate.Event
- func CreatedAtNEQ(v time.Time) predicate.Event
- func CreatedAtNotIn(vs ...time.Time) predicate.Event
- func Description(v string) predicate.Event
- func DescriptionContains(v string) predicate.Event
- func DescriptionContainsFold(v string) predicate.Event
- func DescriptionEQ(v string) predicate.Event
- func DescriptionEqualFold(v string) predicate.Event
- func DescriptionGT(v string) predicate.Event
- func DescriptionGTE(v string) predicate.Event
- func DescriptionHasPrefix(v string) predicate.Event
- func DescriptionHasSuffix(v string) predicate.Event
- func DescriptionIn(vs ...string) predicate.Event
- func DescriptionIsNil() predicate.Event
- func DescriptionLT(v string) predicate.Event
- func DescriptionLTE(v string) predicate.Event
- func DescriptionNEQ(v string) predicate.Event
- func DescriptionNotIn(vs ...string) predicate.Event
- func DescriptionNotNil() predicate.Event
- func EndAt(v time.Time) predicate.Event
- func EndAtEQ(v time.Time) predicate.Event
- func EndAtGT(v time.Time) predicate.Event
- func EndAtGTE(v time.Time) predicate.Event
- func EndAtIn(vs ...time.Time) predicate.Event
- func EndAtLT(v time.Time) predicate.Event
- func EndAtLTE(v time.Time) predicate.Event
- func EndAtNEQ(v time.Time) predicate.Event
- func EndAtNotIn(vs ...time.Time) predicate.Event
- func HasCategory() predicate.Event
- func HasCategoryWith(preds ...predicate.EventType) predicate.Event
- func HasUsers() predicate.Event
- func HasUsersWith(preds ...predicate.User) predicate.Event
- func ID(id uuid.UUID) predicate.Event
- func IDEQ(id uuid.UUID) predicate.Event
- func IDGT(id uuid.UUID) predicate.Event
- func IDGTE(id uuid.UUID) predicate.Event
- func IDIn(ids ...uuid.UUID) predicate.Event
- func IDLT(id uuid.UUID) predicate.Event
- func IDLTE(id uuid.UUID) predicate.Event
- func IDNEQ(id uuid.UUID) predicate.Event
- func IDNotIn(ids ...uuid.UUID) predicate.Event
- func Name(v string) predicate.Event
- func NameContains(v string) predicate.Event
- func NameContainsFold(v string) predicate.Event
- func NameEQ(v string) predicate.Event
- func NameEqualFold(v string) predicate.Event
- func NameGT(v string) predicate.Event
- func NameGTE(v string) predicate.Event
- func NameHasPrefix(v string) predicate.Event
- func NameHasSuffix(v string) predicate.Event
- func NameIn(vs ...string) predicate.Event
- func NameLT(v string) predicate.Event
- func NameLTE(v string) predicate.Event
- func NameNEQ(v string) predicate.Event
- func NameNotIn(vs ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func StartAt(v time.Time) predicate.Event
- func StartAtEQ(v time.Time) predicate.Event
- func StartAtGT(v time.Time) predicate.Event
- func StartAtGTE(v time.Time) predicate.Event
- func StartAtIn(vs ...time.Time) predicate.Event
- func StartAtLT(v time.Time) predicate.Event
- func StartAtLTE(v time.Time) predicate.Event
- func StartAtNEQ(v time.Time) predicate.Event
- func StartAtNotIn(vs ...time.Time) predicate.Event
- func TutorsRequired(v int64) predicate.Event
- func TutorsRequiredEQ(v int64) predicate.Event
- func TutorsRequiredGT(v int64) predicate.Event
- func TutorsRequiredGTE(v int64) predicate.Event
- func TutorsRequiredIn(vs ...int64) predicate.Event
- func TutorsRequiredIsNil() predicate.Event
- func TutorsRequiredLT(v int64) predicate.Event
- func TutorsRequiredLTE(v int64) predicate.Event
- func TutorsRequiredNEQ(v int64) predicate.Event
- func TutorsRequiredNotIn(vs ...int64) predicate.Event
- func TutorsRequiredNotNil() predicate.Event
- func ValidColumn(column string) bool
- func WalletsReward(v int64) predicate.Event
- func WalletsRewardEQ(v int64) predicate.Event
- func WalletsRewardGT(v int64) predicate.Event
- func WalletsRewardGTE(v int64) predicate.Event
- func WalletsRewardIn(vs ...int64) predicate.Event
- func WalletsRewardIsNil() predicate.Event
- func WalletsRewardLT(v int64) predicate.Event
- func WalletsRewardLTE(v int64) predicate.Event
- func WalletsRewardNEQ(v int64) predicate.Event
- func WalletsRewardNotIn(vs ...int64) predicate.Event
- func WalletsRewardNotNil() predicate.Event
Constants ¶
const ( // Label holds the string label denoting the event type in the database. Label = "event" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldTutorsRequired holds the string denoting the tutorsrequired field in the database. FieldTutorsRequired = "tutors_required" // FieldWalletsReward holds the string denoting the walletsreward field in the database. FieldWalletsReward = "wallets_reward" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // FieldStartAt holds the string denoting the startat field in the database. FieldStartAt = "start_at" // FieldEndAt holds the string denoting the endat field in the database. FieldEndAt = "end_at" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeCategory holds the string denoting the category edge name in mutations. EdgeCategory = "category" // Table holds the table name of the event in the database. Table = "events" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "event_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // CategoryTable is the table that holds the category relation/edge. CategoryTable = "events" // CategoryInverseTable is the table name for the EventType entity. // It exists in this package in order to avoid circular dependency with the "eventtype" package. CategoryInverseTable = "event_types" // CategoryColumn is the table column denoting the category relation/edge. CategoryColumn = "event_type_events" )
Variables ¶
var ( Hooks [1]ent.Hook // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // TutorsRequiredValidator is a validator for the "tutorsRequired" field. It is called by the builders before save. TutorsRequiredValidator func(int64) error // WalletsRewardValidator is a validator for the "walletsReward" field. It is called by the builders before save. WalletsRewardValidator func(int64) error // DefaultCreatedAt holds the default value on creation for the "createdAt" field. DefaultCreatedAt 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/gmarcha/ent-goswagger-app/internal/ent/runtime"
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldTutorsRequired, FieldWalletsReward, FieldCreatedAt, FieldStartAt, FieldEndAt, }
Columns holds all SQL columns for event fields.
var ForeignKeys = []string{
"event_type_events",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "events" table and are not defined as standalone fields in the schema.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"event_id", "user_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndAt ¶
EndAt applies equality check predicate on the "endAt" field. It's identical to EndAtEQ.
func EndAtNotIn ¶
EndAtNotIn applies the NotIn predicate on the "endAt" field.
func HasCategory ¶
HasCategory applies the HasEdge predicate on the "category" edge.
func HasCategoryWith ¶
HasCategoryWith applies the HasEdge predicate on the "category" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" 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 StartAt ¶
StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.
func StartAtGTE ¶
StartAtGTE applies the GTE predicate on the "startAt" field.
func StartAtLTE ¶
StartAtLTE applies the LTE predicate on the "startAt" field.
func StartAtNEQ ¶
StartAtNEQ applies the NEQ predicate on the "startAt" field.
func StartAtNotIn ¶
StartAtNotIn applies the NotIn predicate on the "startAt" field.
func TutorsRequired ¶
TutorsRequired applies equality check predicate on the "tutorsRequired" field. It's identical to TutorsRequiredEQ.
func TutorsRequiredEQ ¶
TutorsRequiredEQ applies the EQ predicate on the "tutorsRequired" field.
func TutorsRequiredGT ¶
TutorsRequiredGT applies the GT predicate on the "tutorsRequired" field.
func TutorsRequiredGTE ¶
TutorsRequiredGTE applies the GTE predicate on the "tutorsRequired" field.
func TutorsRequiredIn ¶
TutorsRequiredIn applies the In predicate on the "tutorsRequired" field.
func TutorsRequiredIsNil ¶
TutorsRequiredIsNil applies the IsNil predicate on the "tutorsRequired" field.
func TutorsRequiredLT ¶
TutorsRequiredLT applies the LT predicate on the "tutorsRequired" field.
func TutorsRequiredLTE ¶
TutorsRequiredLTE applies the LTE predicate on the "tutorsRequired" field.
func TutorsRequiredNEQ ¶
TutorsRequiredNEQ applies the NEQ predicate on the "tutorsRequired" field.
func TutorsRequiredNotIn ¶
TutorsRequiredNotIn applies the NotIn predicate on the "tutorsRequired" field.
func TutorsRequiredNotNil ¶
TutorsRequiredNotNil applies the NotNil predicate on the "tutorsRequired" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WalletsReward ¶
WalletsReward applies equality check predicate on the "walletsReward" field. It's identical to WalletsRewardEQ.
func WalletsRewardEQ ¶
WalletsRewardEQ applies the EQ predicate on the "walletsReward" field.
func WalletsRewardGT ¶
WalletsRewardGT applies the GT predicate on the "walletsReward" field.
func WalletsRewardGTE ¶
WalletsRewardGTE applies the GTE predicate on the "walletsReward" field.
func WalletsRewardIn ¶
WalletsRewardIn applies the In predicate on the "walletsReward" field.
func WalletsRewardIsNil ¶
WalletsRewardIsNil applies the IsNil predicate on the "walletsReward" field.
func WalletsRewardLT ¶
WalletsRewardLT applies the LT predicate on the "walletsReward" field.
func WalletsRewardLTE ¶
WalletsRewardLTE applies the LTE predicate on the "walletsReward" field.
func WalletsRewardNEQ ¶
WalletsRewardNEQ applies the NEQ predicate on the "walletsReward" field.
func WalletsRewardNotIn ¶
WalletsRewardNotIn applies the NotIn predicate on the "walletsReward" field.
func WalletsRewardNotNil ¶
WalletsRewardNotNil applies the NotNil predicate on the "walletsReward" field.
Types ¶
This section is empty.