usertomato

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usertomato type in the database.
	Label = "user_tomato"
	// 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldStartTime holds the string denoting the start_time field in the database.
	FieldStartTime = "start_time"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// FieldRemainTime holds the string denoting the remain_time field in the database.
	FieldRemainTime = "remain_time"
	// FieldEndTime holds the string denoting the end_time field in the database.
	FieldEndTime = "end_time"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the usertomato in the database.
	Table = "user_tomatos"
	// UsersTable is the table that holds the users relation/edge.
	UsersTable = "user_tomatos"
	// 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"
	// UsersColumn is the table column denoting the users relation/edge.
	UsersColumn = "user_id"
)

Variables

View Source
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
	// DefaultStartTime holds the default value on creation for the "start_time" field.
	DefaultStartTime func() time.Time
)

Columns holds all SQL columns for usertomato fields.

Functions

func And

func And(predicates ...predicate.UserTomato) predicate.UserTomato

And groups predicates with the AND operator between them.

func ColorEQ

func ColorEQ(v Color) predicate.UserTomato

ColorEQ applies the EQ predicate on the "color" field.

func ColorIn

func ColorIn(vs ...Color) predicate.UserTomato

ColorIn applies the In predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v Color) predicate.UserTomato

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...Color) predicate.UserTomato

ColorNotIn applies the NotIn predicate on the "color" field.

func ColorValidator

func ColorValidator(c Color) error

ColorValidator is a validator for the "color" field enum values. It is called by the builders before save.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserTomato

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserTomato

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserTomato

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserTomato

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserTomato

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserTomato

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserTomato

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

func CreatedAtNotIn

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

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

func EndTime

func EndTime(v time.Time) predicate.UserTomato

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

func EndTimeEQ(v time.Time) predicate.UserTomato

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

func EndTimeGT(v time.Time) predicate.UserTomato

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

func EndTimeGTE(v time.Time) predicate.UserTomato

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...time.Time) predicate.UserTomato

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeIsNil

func EndTimeIsNil() predicate.UserTomato

EndTimeIsNil applies the IsNil predicate on the "end_time" field.

func EndTimeLT

func EndTimeLT(v time.Time) predicate.UserTomato

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

func EndTimeLTE(v time.Time) predicate.UserTomato

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

func EndTimeNEQ(v time.Time) predicate.UserTomato

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...time.Time) predicate.UserTomato

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func EndTimeNotNil

func EndTimeNotNil() predicate.UserTomato

EndTimeNotNil applies the NotNil predicate on the "end_time" field.

func HasUsers

func HasUsers() predicate.UserTomato

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

func HasUsersWith

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

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

func ID

func ID(id int) predicate.UserTomato

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserTomato

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserTomato

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserTomato

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.UserTomato

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserTomato

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserTomato

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserTomato

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.UserTomato

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserTomato) predicate.UserTomato

Or groups predicates with the OR operator between them.

func RemainTime

func RemainTime(v time.Time) predicate.UserTomato

RemainTime applies equality check predicate on the "remain_time" field. It's identical to RemainTimeEQ.

func RemainTimeEQ

func RemainTimeEQ(v time.Time) predicate.UserTomato

RemainTimeEQ applies the EQ predicate on the "remain_time" field.

func RemainTimeGT

func RemainTimeGT(v time.Time) predicate.UserTomato

RemainTimeGT applies the GT predicate on the "remain_time" field.

func RemainTimeGTE

func RemainTimeGTE(v time.Time) predicate.UserTomato

RemainTimeGTE applies the GTE predicate on the "remain_time" field.

func RemainTimeIn

func RemainTimeIn(vs ...time.Time) predicate.UserTomato

RemainTimeIn applies the In predicate on the "remain_time" field.

func RemainTimeLT

func RemainTimeLT(v time.Time) predicate.UserTomato

RemainTimeLT applies the LT predicate on the "remain_time" field.

func RemainTimeLTE

func RemainTimeLTE(v time.Time) predicate.UserTomato

RemainTimeLTE applies the LTE predicate on the "remain_time" field.

func RemainTimeNEQ

func RemainTimeNEQ(v time.Time) predicate.UserTomato

RemainTimeNEQ applies the NEQ predicate on the "remain_time" field.

func RemainTimeNotIn

func RemainTimeNotIn(vs ...time.Time) predicate.UserTomato

RemainTimeNotIn applies the NotIn predicate on the "remain_time" field.

func StartTime

func StartTime(v time.Time) predicate.UserTomato

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v time.Time) predicate.UserTomato

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v time.Time) predicate.UserTomato

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v time.Time) predicate.UserTomato

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...time.Time) predicate.UserTomato

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v time.Time) predicate.UserTomato

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v time.Time) predicate.UserTomato

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v time.Time) predicate.UserTomato

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...time.Time) predicate.UserTomato

StartTimeNotIn applies the NotIn predicate on the "start_time" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserTomato

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserTomato

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserTomato

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserTomato

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.UserTomato

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserTomato

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserTomato

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserTomato

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.UserTomato

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v int) predicate.UserTomato

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.UserTomato

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.UserTomato

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.UserTomato

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.UserTomato

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Color

type Color string

Color defines the type for the "color" enum field.

const (
	ColorRed   Color = "1"
	ColorGreen Color = "2"
)

Color values.

func (Color) String

func (c Color) String() string

Jump to

Keyboard shortcuts

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