Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserTomato) predicate.UserTomato
- func ColorEQ(v Color) predicate.UserTomato
- func ColorIn(vs ...Color) predicate.UserTomato
- func ColorNEQ(v Color) predicate.UserTomato
- func ColorNotIn(vs ...Color) predicate.UserTomato
- func ColorValidator(c Color) error
- func CreatedAt(v time.Time) predicate.UserTomato
- func CreatedAtEQ(v time.Time) predicate.UserTomato
- func CreatedAtGT(v time.Time) predicate.UserTomato
- func CreatedAtGTE(v time.Time) predicate.UserTomato
- func CreatedAtIn(vs ...time.Time) predicate.UserTomato
- func CreatedAtLT(v time.Time) predicate.UserTomato
- func CreatedAtLTE(v time.Time) predicate.UserTomato
- func CreatedAtNEQ(v time.Time) predicate.UserTomato
- func CreatedAtNotIn(vs ...time.Time) predicate.UserTomato
- func EndTime(v time.Time) predicate.UserTomato
- func EndTimeEQ(v time.Time) predicate.UserTomato
- func EndTimeGT(v time.Time) predicate.UserTomato
- func EndTimeGTE(v time.Time) predicate.UserTomato
- func EndTimeIn(vs ...time.Time) predicate.UserTomato
- func EndTimeIsNil() predicate.UserTomato
- func EndTimeLT(v time.Time) predicate.UserTomato
- func EndTimeLTE(v time.Time) predicate.UserTomato
- func EndTimeNEQ(v time.Time) predicate.UserTomato
- func EndTimeNotIn(vs ...time.Time) predicate.UserTomato
- func EndTimeNotNil() predicate.UserTomato
- func HasUsers() predicate.UserTomato
- func HasUsersWith(preds ...predicate.User) predicate.UserTomato
- func ID(id int) predicate.UserTomato
- func IDEQ(id int) predicate.UserTomato
- func IDGT(id int) predicate.UserTomato
- func IDGTE(id int) predicate.UserTomato
- func IDIn(ids ...int) predicate.UserTomato
- func IDLT(id int) predicate.UserTomato
- func IDLTE(id int) predicate.UserTomato
- func IDNEQ(id int) predicate.UserTomato
- func IDNotIn(ids ...int) predicate.UserTomato
- func Not(p predicate.UserTomato) predicate.UserTomato
- func Or(predicates ...predicate.UserTomato) predicate.UserTomato
- func RemainTime(v time.Time) predicate.UserTomato
- func RemainTimeEQ(v time.Time) predicate.UserTomato
- func RemainTimeGT(v time.Time) predicate.UserTomato
- func RemainTimeGTE(v time.Time) predicate.UserTomato
- func RemainTimeIn(vs ...time.Time) predicate.UserTomato
- func RemainTimeLT(v time.Time) predicate.UserTomato
- func RemainTimeLTE(v time.Time) predicate.UserTomato
- func RemainTimeNEQ(v time.Time) predicate.UserTomato
- func RemainTimeNotIn(vs ...time.Time) predicate.UserTomato
- func StartTime(v time.Time) predicate.UserTomato
- func StartTimeEQ(v time.Time) predicate.UserTomato
- func StartTimeGT(v time.Time) predicate.UserTomato
- func StartTimeGTE(v time.Time) predicate.UserTomato
- func StartTimeIn(vs ...time.Time) predicate.UserTomato
- func StartTimeLT(v time.Time) predicate.UserTomato
- func StartTimeLTE(v time.Time) predicate.UserTomato
- func StartTimeNEQ(v time.Time) predicate.UserTomato
- func StartTimeNotIn(vs ...time.Time) predicate.UserTomato
- func UpdatedAt(v time.Time) predicate.UserTomato
- func UpdatedAtEQ(v time.Time) predicate.UserTomato
- func UpdatedAtGT(v time.Time) predicate.UserTomato
- func UpdatedAtGTE(v time.Time) predicate.UserTomato
- func UpdatedAtIn(vs ...time.Time) predicate.UserTomato
- func UpdatedAtLT(v time.Time) predicate.UserTomato
- func UpdatedAtLTE(v time.Time) predicate.UserTomato
- func UpdatedAtNEQ(v time.Time) predicate.UserTomato
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserTomato
- func UserID(v int) predicate.UserTomato
- func UserIDEQ(v int) predicate.UserTomato
- func UserIDIn(vs ...int) predicate.UserTomato
- func UserIDNEQ(v int) predicate.UserTomato
- func UserIDNotIn(vs ...int) predicate.UserTomato
- func ValidColumn(column string) bool
- type Color
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldStartTime, FieldColor, FieldRemainTime, FieldEndTime, }
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 ¶
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 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 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 ¶
func Not(p predicate.UserTomato) predicate.UserTomato
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).