Documentation
¶
Index ¶
- Constants
- Variables
- func AdminID(v uuid.UUID) predicate.InviteCode
- func AdminIDEQ(v uuid.UUID) predicate.InviteCode
- func AdminIDGT(v uuid.UUID) predicate.InviteCode
- func AdminIDGTE(v uuid.UUID) predicate.InviteCode
- func AdminIDIn(vs ...uuid.UUID) predicate.InviteCode
- func AdminIDLT(v uuid.UUID) predicate.InviteCode
- func AdminIDLTE(v uuid.UUID) predicate.InviteCode
- func AdminIDNEQ(v uuid.UUID) predicate.InviteCode
- func AdminIDNotIn(vs ...uuid.UUID) predicate.InviteCode
- func And(predicates ...predicate.InviteCode) predicate.InviteCode
- func Code(v string) predicate.InviteCode
- func CodeContains(v string) predicate.InviteCode
- func CodeContainsFold(v string) predicate.InviteCode
- func CodeEQ(v string) predicate.InviteCode
- func CodeEqualFold(v string) predicate.InviteCode
- func CodeGT(v string) predicate.InviteCode
- func CodeGTE(v string) predicate.InviteCode
- func CodeHasPrefix(v string) predicate.InviteCode
- func CodeHasSuffix(v string) predicate.InviteCode
- func CodeIn(vs ...string) predicate.InviteCode
- func CodeLT(v string) predicate.InviteCode
- func CodeLTE(v string) predicate.InviteCode
- func CodeNEQ(v string) predicate.InviteCode
- func CodeNotIn(vs ...string) predicate.InviteCode
- func CreatedAt(v time.Time) predicate.InviteCode
- func CreatedAtEQ(v time.Time) predicate.InviteCode
- func CreatedAtGT(v time.Time) predicate.InviteCode
- func CreatedAtGTE(v time.Time) predicate.InviteCode
- func CreatedAtIn(vs ...time.Time) predicate.InviteCode
- func CreatedAtLT(v time.Time) predicate.InviteCode
- func CreatedAtLTE(v time.Time) predicate.InviteCode
- func CreatedAtNEQ(v time.Time) predicate.InviteCode
- func CreatedAtNotIn(vs ...time.Time) predicate.InviteCode
- func ExpiredAt(v time.Time) predicate.InviteCode
- func ExpiredAtEQ(v time.Time) predicate.InviteCode
- func ExpiredAtGT(v time.Time) predicate.InviteCode
- func ExpiredAtGTE(v time.Time) predicate.InviteCode
- func ExpiredAtIn(vs ...time.Time) predicate.InviteCode
- func ExpiredAtLT(v time.Time) predicate.InviteCode
- func ExpiredAtLTE(v time.Time) predicate.InviteCode
- func ExpiredAtNEQ(v time.Time) predicate.InviteCode
- func ExpiredAtNotIn(vs ...time.Time) predicate.InviteCode
- func ID(id uuid.UUID) predicate.InviteCode
- func IDEQ(id uuid.UUID) predicate.InviteCode
- func IDGT(id uuid.UUID) predicate.InviteCode
- func IDGTE(id uuid.UUID) predicate.InviteCode
- func IDIn(ids ...uuid.UUID) predicate.InviteCode
- func IDLT(id uuid.UUID) predicate.InviteCode
- func IDLTE(id uuid.UUID) predicate.InviteCode
- func IDNEQ(id uuid.UUID) predicate.InviteCode
- func IDNotIn(ids ...uuid.UUID) predicate.InviteCode
- func Not(p predicate.InviteCode) predicate.InviteCode
- func Or(predicates ...predicate.InviteCode) predicate.InviteCode
- func Status(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusContains(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusContainsFold(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusEQ(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusEqualFold(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusGT(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusGTE(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusHasPrefix(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusHasSuffix(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusIn(vs ...consts.InviteCodeStatus) predicate.InviteCode
- func StatusLT(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusLTE(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusNEQ(v consts.InviteCodeStatus) predicate.InviteCode
- func StatusNotIn(vs ...consts.InviteCodeStatus) predicate.InviteCode
- func UpdatedAt(v time.Time) predicate.InviteCode
- func UpdatedAtEQ(v time.Time) predicate.InviteCode
- func UpdatedAtGT(v time.Time) predicate.InviteCode
- func UpdatedAtGTE(v time.Time) predicate.InviteCode
- func UpdatedAtIn(vs ...time.Time) predicate.InviteCode
- func UpdatedAtLT(v time.Time) predicate.InviteCode
- func UpdatedAtLTE(v time.Time) predicate.InviteCode
- func UpdatedAtNEQ(v time.Time) predicate.InviteCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.InviteCode
- func ValidColumn(column string) bool
- type OrderOption
- func ByAdminID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the invitecode type in the database. Label = "invite_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAdminID holds the string denoting the admin_id field in the database. FieldAdminID = "admin_id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // Table holds the table name of the invitecode in the database. Table = "invite_codes" )
Variables ¶
var ( // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus consts.InviteCodeStatus // 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 )
var Columns = []string{ FieldID, FieldAdminID, FieldCode, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldExpiredAt, }
Columns holds all SQL columns for invitecode fields.
Functions ¶
func AdminID ¶
func AdminID(v uuid.UUID) predicate.InviteCode
AdminID applies equality check predicate on the "admin_id" field. It's identical to AdminIDEQ.
func AdminIDEQ ¶
func AdminIDEQ(v uuid.UUID) predicate.InviteCode
AdminIDEQ applies the EQ predicate on the "admin_id" field.
func AdminIDGT ¶
func AdminIDGT(v uuid.UUID) predicate.InviteCode
AdminIDGT applies the GT predicate on the "admin_id" field.
func AdminIDGTE ¶
func AdminIDGTE(v uuid.UUID) predicate.InviteCode
AdminIDGTE applies the GTE predicate on the "admin_id" field.
func AdminIDIn ¶
func AdminIDIn(vs ...uuid.UUID) predicate.InviteCode
AdminIDIn applies the In predicate on the "admin_id" field.
func AdminIDLT ¶
func AdminIDLT(v uuid.UUID) predicate.InviteCode
AdminIDLT applies the LT predicate on the "admin_id" field.
func AdminIDLTE ¶
func AdminIDLTE(v uuid.UUID) predicate.InviteCode
AdminIDLTE applies the LTE predicate on the "admin_id" field.
func AdminIDNEQ ¶
func AdminIDNEQ(v uuid.UUID) predicate.InviteCode
AdminIDNEQ applies the NEQ predicate on the "admin_id" field.
func AdminIDNotIn ¶
func AdminIDNotIn(vs ...uuid.UUID) predicate.InviteCode
AdminIDNotIn applies the NotIn predicate on the "admin_id" field.
func And ¶
func And(predicates ...predicate.InviteCode) predicate.InviteCode
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.InviteCode
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.InviteCode
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.InviteCode
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.InviteCode
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.InviteCode
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeGT ¶
func CodeGT(v string) predicate.InviteCode
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.InviteCode
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.InviteCode
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.InviteCode
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.InviteCode
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.InviteCode
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.InviteCode
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.InviteCode
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.InviteCode
CodeNotIn applies the NotIn predicate on the "code" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.InviteCode
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.InviteCode
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.InviteCode
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.InviteCode
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.InviteCode
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.InviteCode
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.InviteCode
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.InviteCode
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.InviteCode
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiredAt ¶
func ExpiredAt(v time.Time) predicate.InviteCode
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
func ExpiredAtEQ(v time.Time) predicate.InviteCode
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
func ExpiredAtGT(v time.Time) predicate.InviteCode
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
func ExpiredAtGTE(v time.Time) predicate.InviteCode
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
func ExpiredAtIn(vs ...time.Time) predicate.InviteCode
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtLT ¶
func ExpiredAtLT(v time.Time) predicate.InviteCode
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
func ExpiredAtLTE(v time.Time) predicate.InviteCode
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
func ExpiredAtNEQ(v time.Time) predicate.InviteCode
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
func ExpiredAtNotIn(vs ...time.Time) predicate.InviteCode
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.InviteCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.InviteCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.InviteCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.InviteCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.InviteCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.InviteCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.InviteCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.InviteCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.InviteCode) predicate.InviteCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.InviteCode) predicate.InviteCode
Or groups predicates with the OR operator between them.
func Status ¶
func Status(v consts.InviteCodeStatus) predicate.InviteCode
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v consts.InviteCodeStatus) predicate.InviteCode
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v consts.InviteCodeStatus) predicate.InviteCode
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v consts.InviteCodeStatus) predicate.InviteCode
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v consts.InviteCodeStatus) predicate.InviteCode
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v consts.InviteCodeStatus) predicate.InviteCode
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v consts.InviteCodeStatus) predicate.InviteCode
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v consts.InviteCodeStatus) predicate.InviteCode
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v consts.InviteCodeStatus) predicate.InviteCode
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...consts.InviteCodeStatus) predicate.InviteCode
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v consts.InviteCodeStatus) predicate.InviteCode
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v consts.InviteCodeStatus) predicate.InviteCode
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v consts.InviteCodeStatus) predicate.InviteCode
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...consts.InviteCodeStatus) predicate.InviteCode
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.InviteCode
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.InviteCode
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.InviteCode
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.InviteCode
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.InviteCode
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.InviteCode
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.InviteCode
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.InviteCode
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.InviteCode
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 InviteCode queries.
func ByAdminID ¶
func ByAdminID(opts ...sql.OrderTermOption) OrderOption
ByAdminID orders the results by the admin_id field.
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 ByExpiredAt ¶
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.