add: some user api and all api desc
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package userverifications
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the userverifications type in the database.
|
||||
Label = "user_verifications"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldUserID holds the string denoting the user_id field in the database.
|
||||
FieldUserID = "user_id"
|
||||
// FieldRole holds the string denoting the role field in the database.
|
||||
FieldRole = "role"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldMaterials holds the string denoting the materials field in the database.
|
||||
FieldMaterials = "materials"
|
||||
// FieldRejectReason holds the string denoting the reject_reason field in the database.
|
||||
FieldRejectReason = "reject_reason"
|
||||
// FieldReviewedBy holds the string denoting the reviewed_by field in the database.
|
||||
FieldReviewedBy = "reviewed_by"
|
||||
// FieldReviewedAt holds the string denoting the reviewed_at field in the database.
|
||||
FieldReviewedAt = "reviewed_at"
|
||||
// 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"
|
||||
// Table holds the table name of the userverifications in the database.
|
||||
Table = "user_verifications"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for userverifications fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldUserID,
|
||||
FieldRole,
|
||||
FieldStatus,
|
||||
FieldMaterials,
|
||||
FieldRejectReason,
|
||||
FieldReviewedBy,
|
||||
FieldReviewedAt,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultRejectReason holds the default value on creation for the "reject_reason" field.
|
||||
DefaultRejectReason string
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the UserVerifications queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUserID orders the results by the user_id field.
|
||||
func ByUserID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUserID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRole orders the results by the role field.
|
||||
func ByRole(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRole, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRejectReason orders the results by the reject_reason field.
|
||||
func ByRejectReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRejectReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReviewedBy orders the results by the reviewed_by field.
|
||||
func ByReviewedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReviewedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReviewedAt orders the results by the reviewed_at field.
|
||||
func ByReviewedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReviewedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,505 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package userverifications
|
||||
|
||||
import (
|
||||
"juwan-backend/app/user_verifications/rpc/internal/models/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
||||
func UserID(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
|
||||
func Role(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RejectReason applies equality check predicate on the "reject_reason" field. It's identical to RejectReasonEQ.
|
||||
func RejectReason(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// ReviewedBy applies equality check predicate on the "reviewed_by" field. It's identical to ReviewedByEQ.
|
||||
func ReviewedBy(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedAt applies equality check predicate on the "reviewed_at" field. It's identical to ReviewedAtEQ.
|
||||
func ReviewedAt(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
||||
func UserIDEQ(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
||||
func UserIDNEQ(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDIn applies the In predicate on the "user_id" field.
|
||||
func UserIDIn(vs ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldUserID, vs...))
|
||||
}
|
||||
|
||||
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
||||
func UserIDNotIn(vs ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldUserID, vs...))
|
||||
}
|
||||
|
||||
// UserIDGT applies the GT predicate on the "user_id" field.
|
||||
func UserIDGT(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDGTE applies the GTE predicate on the "user_id" field.
|
||||
func UserIDGTE(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDLT applies the LT predicate on the "user_id" field.
|
||||
func UserIDLT(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldUserID, v))
|
||||
}
|
||||
|
||||
// UserIDLTE applies the LTE predicate on the "user_id" field.
|
||||
func UserIDLTE(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldUserID, v))
|
||||
}
|
||||
|
||||
// RoleEQ applies the EQ predicate on the "role" field.
|
||||
func RoleEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleNEQ applies the NEQ predicate on the "role" field.
|
||||
func RoleNEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleIn applies the In predicate on the "role" field.
|
||||
func RoleIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldRole, vs...))
|
||||
}
|
||||
|
||||
// RoleNotIn applies the NotIn predicate on the "role" field.
|
||||
func RoleNotIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldRole, vs...))
|
||||
}
|
||||
|
||||
// RoleGT applies the GT predicate on the "role" field.
|
||||
func RoleGT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleGTE applies the GTE predicate on the "role" field.
|
||||
func RoleGTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleLT applies the LT predicate on the "role" field.
|
||||
func RoleLT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleLTE applies the LTE predicate on the "role" field.
|
||||
func RoleLTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleContains applies the Contains predicate on the "role" field.
|
||||
func RoleContains(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContains(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleHasPrefix applies the HasPrefix predicate on the "role" field.
|
||||
func RoleHasPrefix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasPrefix(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleHasSuffix applies the HasSuffix predicate on the "role" field.
|
||||
func RoleHasSuffix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasSuffix(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleEqualFold applies the EqualFold predicate on the "role" field.
|
||||
func RoleEqualFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEqualFold(FieldRole, v))
|
||||
}
|
||||
|
||||
// RoleContainsFold applies the ContainsFold predicate on the "role" field.
|
||||
func RoleContainsFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContainsFold(FieldRole, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RejectReasonEQ applies the EQ predicate on the "reject_reason" field.
|
||||
func RejectReasonEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonNEQ applies the NEQ predicate on the "reject_reason" field.
|
||||
func RejectReasonNEQ(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonIn applies the In predicate on the "reject_reason" field.
|
||||
func RejectReasonIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldRejectReason, vs...))
|
||||
}
|
||||
|
||||
// RejectReasonNotIn applies the NotIn predicate on the "reject_reason" field.
|
||||
func RejectReasonNotIn(vs ...string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldRejectReason, vs...))
|
||||
}
|
||||
|
||||
// RejectReasonGT applies the GT predicate on the "reject_reason" field.
|
||||
func RejectReasonGT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonGTE applies the GTE predicate on the "reject_reason" field.
|
||||
func RejectReasonGTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonLT applies the LT predicate on the "reject_reason" field.
|
||||
func RejectReasonLT(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonLTE applies the LTE predicate on the "reject_reason" field.
|
||||
func RejectReasonLTE(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonContains applies the Contains predicate on the "reject_reason" field.
|
||||
func RejectReasonContains(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContains(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonHasPrefix applies the HasPrefix predicate on the "reject_reason" field.
|
||||
func RejectReasonHasPrefix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasPrefix(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonHasSuffix applies the HasSuffix predicate on the "reject_reason" field.
|
||||
func RejectReasonHasSuffix(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldHasSuffix(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonEqualFold applies the EqualFold predicate on the "reject_reason" field.
|
||||
func RejectReasonEqualFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEqualFold(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// RejectReasonContainsFold applies the ContainsFold predicate on the "reject_reason" field.
|
||||
func RejectReasonContainsFold(v string) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldContainsFold(FieldRejectReason, v))
|
||||
}
|
||||
|
||||
// ReviewedByEQ applies the EQ predicate on the "reviewed_by" field.
|
||||
func ReviewedByEQ(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedByNEQ applies the NEQ predicate on the "reviewed_by" field.
|
||||
func ReviewedByNEQ(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedByIn applies the In predicate on the "reviewed_by" field.
|
||||
func ReviewedByIn(vs ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldReviewedBy, vs...))
|
||||
}
|
||||
|
||||
// ReviewedByNotIn applies the NotIn predicate on the "reviewed_by" field.
|
||||
func ReviewedByNotIn(vs ...int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldReviewedBy, vs...))
|
||||
}
|
||||
|
||||
// ReviewedByGT applies the GT predicate on the "reviewed_by" field.
|
||||
func ReviewedByGT(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedByGTE applies the GTE predicate on the "reviewed_by" field.
|
||||
func ReviewedByGTE(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedByLT applies the LT predicate on the "reviewed_by" field.
|
||||
func ReviewedByLT(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedByLTE applies the LTE predicate on the "reviewed_by" field.
|
||||
func ReviewedByLTE(v int64) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldReviewedBy, v))
|
||||
}
|
||||
|
||||
// ReviewedAtEQ applies the EQ predicate on the "reviewed_at" field.
|
||||
func ReviewedAtEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// ReviewedAtNEQ applies the NEQ predicate on the "reviewed_at" field.
|
||||
func ReviewedAtNEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// ReviewedAtIn applies the In predicate on the "reviewed_at" field.
|
||||
func ReviewedAtIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldReviewedAt, vs...))
|
||||
}
|
||||
|
||||
// ReviewedAtNotIn applies the NotIn predicate on the "reviewed_at" field.
|
||||
func ReviewedAtNotIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldReviewedAt, vs...))
|
||||
}
|
||||
|
||||
// ReviewedAtGT applies the GT predicate on the "reviewed_at" field.
|
||||
func ReviewedAtGT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// ReviewedAtGTE applies the GTE predicate on the "reviewed_at" field.
|
||||
func ReviewedAtGTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// ReviewedAtLT applies the LT predicate on the "reviewed_at" field.
|
||||
func ReviewedAtLT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// ReviewedAtLTE applies the LTE predicate on the "reviewed_at" field.
|
||||
func ReviewedAtLTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldReviewedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.UserVerifications) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.UserVerifications) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.UserVerifications) predicate.UserVerifications {
|
||||
return predicate.UserVerifications(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user