Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Otp) predicate.Otp
- func Code(v uint32) predicate.Otp
- func CodeEQ(v uint32) predicate.Otp
- func CodeGT(v uint32) predicate.Otp
- func CodeGTE(v uint32) predicate.Otp
- func CodeIn(vs ...uint32) predicate.Otp
- func CodeLT(v uint32) predicate.Otp
- func CodeLTE(v uint32) predicate.Otp
- func CodeNEQ(v uint32) predicate.Otp
- func CodeNotIn(vs ...uint32) predicate.Otp
- func CreatedAt(v time.Time) predicate.Otp
- func CreatedAtEQ(v time.Time) predicate.Otp
- func CreatedAtGT(v time.Time) predicate.Otp
- func CreatedAtGTE(v time.Time) predicate.Otp
- func CreatedAtIn(vs ...time.Time) predicate.Otp
- func CreatedAtLT(v time.Time) predicate.Otp
- func CreatedAtLTE(v time.Time) predicate.Otp
- func CreatedAtNEQ(v time.Time) predicate.Otp
- func CreatedAtNotIn(vs ...time.Time) predicate.Otp
- func HasUser() predicate.Otp
- func HasUserWith(preds ...predicate.User) predicate.Otp
- func ID(id uuid.UUID) predicate.Otp
- func IDEQ(id uuid.UUID) predicate.Otp
- func IDGT(id uuid.UUID) predicate.Otp
- func IDGTE(id uuid.UUID) predicate.Otp
- func IDIn(ids ...uuid.UUID) predicate.Otp
- func IDLT(id uuid.UUID) predicate.Otp
- func IDLTE(id uuid.UUID) predicate.Otp
- func IDNEQ(id uuid.UUID) predicate.Otp
- func IDNotIn(ids ...uuid.UUID) predicate.Otp
- func Not(p predicate.Otp) predicate.Otp
- func Or(predicates ...predicate.Otp) predicate.Otp
- func UpdatedAt(v time.Time) predicate.Otp
- func UpdatedAtEQ(v time.Time) predicate.Otp
- func UpdatedAtGT(v time.Time) predicate.Otp
- func UpdatedAtGTE(v time.Time) predicate.Otp
- func UpdatedAtIn(vs ...time.Time) predicate.Otp
- func UpdatedAtLT(v time.Time) predicate.Otp
- func UpdatedAtLTE(v time.Time) predicate.Otp
- func UpdatedAtNEQ(v time.Time) predicate.Otp
- func UpdatedAtNotIn(vs ...time.Time) predicate.Otp
- func UserID(v uuid.UUID) predicate.Otp
- func UserIDEQ(v uuid.UUID) predicate.Otp
- func UserIDIn(vs ...uuid.UUID) predicate.Otp
- func UserIDNEQ(v uuid.UUID) predicate.Otp
- func UserIDNotIn(vs ...uuid.UUID) predicate.Otp
- func ValidColumn(column string) bool
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the otp type in the database. Label = "otp" // 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" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the otp in the database. Table = "otps" // UserTable is the table that holds the user relation/edge. UserTable = "otps" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCode, FieldUserID, }
Columns holds all SQL columns for otp fields.
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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Otp queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.