event

package
v0.0.0-...-b394ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for event fields.

View Source
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.

View Source
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 And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

CreatedAtEQ applies the EQ predicate on the "createdAt" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

CreatedAtGT applies the GT predicate on the "createdAt" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

CreatedAtGTE applies the GTE predicate on the "createdAt" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Event

CreatedAtIn applies the In predicate on the "createdAt" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

CreatedAtLT applies the LT predicate on the "createdAt" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

CreatedAtLTE applies the LTE predicate on the "createdAt" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Event

CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.

func Description

func Description(v string) predicate.Event

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Event

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Event

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Event

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Event

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Event

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Event

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Event

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Event

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Event

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Event

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Event

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Event

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Event

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Event

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Event

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EndAt

func EndAt(v time.Time) predicate.Event

EndAt applies equality check predicate on the "endAt" field. It's identical to EndAtEQ.

func EndAtEQ

func EndAtEQ(v time.Time) predicate.Event

EndAtEQ applies the EQ predicate on the "endAt" field.

func EndAtGT

func EndAtGT(v time.Time) predicate.Event

EndAtGT applies the GT predicate on the "endAt" field.

func EndAtGTE

func EndAtGTE(v time.Time) predicate.Event

EndAtGTE applies the GTE predicate on the "endAt" field.

func EndAtIn

func EndAtIn(vs ...time.Time) predicate.Event

EndAtIn applies the In predicate on the "endAt" field.

func EndAtLT

func EndAtLT(v time.Time) predicate.Event

EndAtLT applies the LT predicate on the "endAt" field.

func EndAtLTE

func EndAtLTE(v time.Time) predicate.Event

EndAtLTE applies the LTE predicate on the "endAt" field.

func EndAtNEQ

func EndAtNEQ(v time.Time) predicate.Event

EndAtNEQ applies the NEQ predicate on the "endAt" field.

func EndAtNotIn

func EndAtNotIn(vs ...time.Time) predicate.Event

EndAtNotIn applies the NotIn predicate on the "endAt" field.

func HasCategory

func HasCategory() predicate.Event

HasCategory applies the HasEdge predicate on the "category" edge.

func HasCategoryWith

func HasCategoryWith(preds ...predicate.EventType) predicate.Event

HasCategoryWith applies the HasEdge predicate on the "category" edge with a given conditions (other predicates).

func HasUsers

func HasUsers() predicate.Event

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Event

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Event

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Event

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Event

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Event

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Event

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Event

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Event

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Event

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Event

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Event

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Event

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Event

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Event

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Event

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Event

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Event

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func StartAt

func StartAt(v time.Time) predicate.Event

StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.

func StartAtEQ

func StartAtEQ(v time.Time) predicate.Event

StartAtEQ applies the EQ predicate on the "startAt" field.

func StartAtGT

func StartAtGT(v time.Time) predicate.Event

StartAtGT applies the GT predicate on the "startAt" field.

func StartAtGTE

func StartAtGTE(v time.Time) predicate.Event

StartAtGTE applies the GTE predicate on the "startAt" field.

func StartAtIn

func StartAtIn(vs ...time.Time) predicate.Event

StartAtIn applies the In predicate on the "startAt" field.

func StartAtLT

func StartAtLT(v time.Time) predicate.Event

StartAtLT applies the LT predicate on the "startAt" field.

func StartAtLTE

func StartAtLTE(v time.Time) predicate.Event

StartAtLTE applies the LTE predicate on the "startAt" field.

func StartAtNEQ

func StartAtNEQ(v time.Time) predicate.Event

StartAtNEQ applies the NEQ predicate on the "startAt" field.

func StartAtNotIn

func StartAtNotIn(vs ...time.Time) predicate.Event

StartAtNotIn applies the NotIn predicate on the "startAt" field.

func TutorsRequired

func TutorsRequired(v int64) predicate.Event

TutorsRequired applies equality check predicate on the "tutorsRequired" field. It's identical to TutorsRequiredEQ.

func TutorsRequiredEQ

func TutorsRequiredEQ(v int64) predicate.Event

TutorsRequiredEQ applies the EQ predicate on the "tutorsRequired" field.

func TutorsRequiredGT

func TutorsRequiredGT(v int64) predicate.Event

TutorsRequiredGT applies the GT predicate on the "tutorsRequired" field.

func TutorsRequiredGTE

func TutorsRequiredGTE(v int64) predicate.Event

TutorsRequiredGTE applies the GTE predicate on the "tutorsRequired" field.

func TutorsRequiredIn

func TutorsRequiredIn(vs ...int64) predicate.Event

TutorsRequiredIn applies the In predicate on the "tutorsRequired" field.

func TutorsRequiredIsNil

func TutorsRequiredIsNil() predicate.Event

TutorsRequiredIsNil applies the IsNil predicate on the "tutorsRequired" field.

func TutorsRequiredLT

func TutorsRequiredLT(v int64) predicate.Event

TutorsRequiredLT applies the LT predicate on the "tutorsRequired" field.

func TutorsRequiredLTE

func TutorsRequiredLTE(v int64) predicate.Event

TutorsRequiredLTE applies the LTE predicate on the "tutorsRequired" field.

func TutorsRequiredNEQ

func TutorsRequiredNEQ(v int64) predicate.Event

TutorsRequiredNEQ applies the NEQ predicate on the "tutorsRequired" field.

func TutorsRequiredNotIn

func TutorsRequiredNotIn(vs ...int64) predicate.Event

TutorsRequiredNotIn applies the NotIn predicate on the "tutorsRequired" field.

func TutorsRequiredNotNil

func TutorsRequiredNotNil() predicate.Event

TutorsRequiredNotNil applies the NotNil predicate on the "tutorsRequired" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WalletsReward

func WalletsReward(v int64) predicate.Event

WalletsReward applies equality check predicate on the "walletsReward" field. It's identical to WalletsRewardEQ.

func WalletsRewardEQ

func WalletsRewardEQ(v int64) predicate.Event

WalletsRewardEQ applies the EQ predicate on the "walletsReward" field.

func WalletsRewardGT

func WalletsRewardGT(v int64) predicate.Event

WalletsRewardGT applies the GT predicate on the "walletsReward" field.

func WalletsRewardGTE

func WalletsRewardGTE(v int64) predicate.Event

WalletsRewardGTE applies the GTE predicate on the "walletsReward" field.

func WalletsRewardIn

func WalletsRewardIn(vs ...int64) predicate.Event

WalletsRewardIn applies the In predicate on the "walletsReward" field.

func WalletsRewardIsNil

func WalletsRewardIsNil() predicate.Event

WalletsRewardIsNil applies the IsNil predicate on the "walletsReward" field.

func WalletsRewardLT

func WalletsRewardLT(v int64) predicate.Event

WalletsRewardLT applies the LT predicate on the "walletsReward" field.

func WalletsRewardLTE

func WalletsRewardLTE(v int64) predicate.Event

WalletsRewardLTE applies the LTE predicate on the "walletsReward" field.

func WalletsRewardNEQ

func WalletsRewardNEQ(v int64) predicate.Event

WalletsRewardNEQ applies the NEQ predicate on the "walletsReward" field.

func WalletsRewardNotIn

func WalletsRewardNotIn(vs ...int64) predicate.Event

WalletsRewardNotIn applies the NotIn predicate on the "walletsReward" field.

func WalletsRewardNotNil

func WalletsRewardNotNil() predicate.Event

WalletsRewardNotNil applies the NotNil predicate on the "walletsReward" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL