Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserIdentity) predicate.UserIdentity
- func Code(v string) predicate.UserIdentity
- func CodeContains(v string) predicate.UserIdentity
- func CodeContainsFold(v string) predicate.UserIdentity
- func CodeEQ(v string) predicate.UserIdentity
- func CodeEqualFold(v string) predicate.UserIdentity
- func CodeExtend(v string) predicate.UserIdentity
- func CodeExtendContains(v string) predicate.UserIdentity
- func CodeExtendContainsFold(v string) predicate.UserIdentity
- func CodeExtendEQ(v string) predicate.UserIdentity
- func CodeExtendEqualFold(v string) predicate.UserIdentity
- func CodeExtendGT(v string) predicate.UserIdentity
- func CodeExtendGTE(v string) predicate.UserIdentity
- func CodeExtendHasPrefix(v string) predicate.UserIdentity
- func CodeExtendHasSuffix(v string) predicate.UserIdentity
- func CodeExtendIn(vs ...string) predicate.UserIdentity
- func CodeExtendIsNil() predicate.UserIdentity
- func CodeExtendLT(v string) predicate.UserIdentity
- func CodeExtendLTE(v string) predicate.UserIdentity
- func CodeExtendNEQ(v string) predicate.UserIdentity
- func CodeExtendNotIn(vs ...string) predicate.UserIdentity
- func CodeExtendNotNil() predicate.UserIdentity
- func CodeGT(v string) predicate.UserIdentity
- func CodeGTE(v string) predicate.UserIdentity
- func CodeHasPrefix(v string) predicate.UserIdentity
- func CodeHasSuffix(v string) predicate.UserIdentity
- func CodeIn(vs ...string) predicate.UserIdentity
- func CodeIsNil() predicate.UserIdentity
- func CodeLT(v string) predicate.UserIdentity
- func CodeLTE(v string) predicate.UserIdentity
- func CodeNEQ(v string) predicate.UserIdentity
- func CodeNotIn(vs ...string) predicate.UserIdentity
- func CodeNotNil() predicate.UserIdentity
- func CreatedAt(v time.Time) predicate.UserIdentity
- func CreatedAtEQ(v time.Time) predicate.UserIdentity
- func CreatedAtGT(v time.Time) predicate.UserIdentity
- func CreatedAtGTE(v time.Time) predicate.UserIdentity
- func CreatedAtIn(vs ...time.Time) predicate.UserIdentity
- func CreatedAtLT(v time.Time) predicate.UserIdentity
- func CreatedAtLTE(v time.Time) predicate.UserIdentity
- func CreatedAtNEQ(v time.Time) predicate.UserIdentity
- func CreatedAtNotIn(vs ...time.Time) predicate.UserIdentity
- func CreatedBy(v int) predicate.UserIdentity
- func CreatedByEQ(v int) predicate.UserIdentity
- func CreatedByGT(v int) predicate.UserIdentity
- func CreatedByGTE(v int) predicate.UserIdentity
- func CreatedByIn(vs ...int) predicate.UserIdentity
- func CreatedByLT(v int) predicate.UserIdentity
- func CreatedByLTE(v int) predicate.UserIdentity
- func CreatedByNEQ(v int) predicate.UserIdentity
- func CreatedByNotIn(vs ...int) predicate.UserIdentity
- func HasUser() predicate.UserIdentity
- func HasUserWith(preds ...predicate.User) predicate.UserIdentity
- func ID(id int) predicate.UserIdentity
- func IDEQ(id int) predicate.UserIdentity
- func IDGT(id int) predicate.UserIdentity
- func IDGTE(id int) predicate.UserIdentity
- func IDIn(ids ...int) predicate.UserIdentity
- func IDLT(id int) predicate.UserIdentity
- func IDLTE(id int) predicate.UserIdentity
- func IDNEQ(id int) predicate.UserIdentity
- func IDNotIn(ids ...int) predicate.UserIdentity
- func KindEQ(v Kind) predicate.UserIdentity
- func KindIn(vs ...Kind) predicate.UserIdentity
- func KindNEQ(v Kind) predicate.UserIdentity
- func KindNotIn(vs ...Kind) predicate.UserIdentity
- func KindValidator(k Kind) error
- func Not(p predicate.UserIdentity) predicate.UserIdentity
- func Or(predicates ...predicate.UserIdentity) predicate.UserIdentity
- func StatusEQ(v typex.SimpleStatus) predicate.UserIdentity
- func StatusIn(vs ...typex.SimpleStatus) predicate.UserIdentity
- func StatusIsNil() predicate.UserIdentity
- func StatusNEQ(v typex.SimpleStatus) predicate.UserIdentity
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.UserIdentity
- func StatusNotNil() predicate.UserIdentity
- func StatusValidator(s typex.SimpleStatus) error
- func UpdatedAt(v time.Time) predicate.UserIdentity
- func UpdatedAtEQ(v time.Time) predicate.UserIdentity
- func UpdatedAtGT(v time.Time) predicate.UserIdentity
- func UpdatedAtGTE(v time.Time) predicate.UserIdentity
- func UpdatedAtIn(vs ...time.Time) predicate.UserIdentity
- func UpdatedAtIsNil() predicate.UserIdentity
- func UpdatedAtLT(v time.Time) predicate.UserIdentity
- func UpdatedAtLTE(v time.Time) predicate.UserIdentity
- func UpdatedAtNEQ(v time.Time) predicate.UserIdentity
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserIdentity
- func UpdatedAtNotNil() predicate.UserIdentity
- func UpdatedBy(v int) predicate.UserIdentity
- func UpdatedByEQ(v int) predicate.UserIdentity
- func UpdatedByGT(v int) predicate.UserIdentity
- func UpdatedByGTE(v int) predicate.UserIdentity
- func UpdatedByIn(vs ...int) predicate.UserIdentity
- func UpdatedByIsNil() predicate.UserIdentity
- func UpdatedByLT(v int) predicate.UserIdentity
- func UpdatedByLTE(v int) predicate.UserIdentity
- func UpdatedByNEQ(v int) predicate.UserIdentity
- func UpdatedByNotIn(vs ...int) predicate.UserIdentity
- func UpdatedByNotNil() predicate.UserIdentity
- func UserID(v int) predicate.UserIdentity
- func UserIDEQ(v int) predicate.UserIdentity
- func UserIDIn(vs ...int) predicate.UserIdentity
- func UserIDIsNil() predicate.UserIdentity
- func UserIDNEQ(v int) predicate.UserIdentity
- func UserIDNotIn(vs ...int) predicate.UserIdentity
- func UserIDNotNil() predicate.UserIdentity
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCodeExtend(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(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 useridentity type in the database. Label = "user_identity" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // 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" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldCodeExtend holds the string denoting the code_extend field in the database. FieldCodeExtend = "code_extend" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the useridentity in the database. Table = "user_identity" // UserTable is the table that holds the user relation/edge. UserTable = "user_identity" // 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 = "user" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( Hooks [3]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldUserID, FieldKind, FieldCode, FieldCodeExtend, FieldStatus, }
Columns holds all SQL columns for useridentity fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserIdentity) predicate.UserIdentity
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.UserIdentity
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.UserIdentity
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.UserIdentity
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.UserIdentity
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.UserIdentity
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeExtend ¶
func CodeExtend(v string) predicate.UserIdentity
CodeExtend applies equality check predicate on the "code_extend" field. It's identical to CodeExtendEQ.
func CodeExtendContains ¶
func CodeExtendContains(v string) predicate.UserIdentity
CodeExtendContains applies the Contains predicate on the "code_extend" field.
func CodeExtendContainsFold ¶
func CodeExtendContainsFold(v string) predicate.UserIdentity
CodeExtendContainsFold applies the ContainsFold predicate on the "code_extend" field.
func CodeExtendEQ ¶
func CodeExtendEQ(v string) predicate.UserIdentity
CodeExtendEQ applies the EQ predicate on the "code_extend" field.
func CodeExtendEqualFold ¶
func CodeExtendEqualFold(v string) predicate.UserIdentity
CodeExtendEqualFold applies the EqualFold predicate on the "code_extend" field.
func CodeExtendGT ¶
func CodeExtendGT(v string) predicate.UserIdentity
CodeExtendGT applies the GT predicate on the "code_extend" field.
func CodeExtendGTE ¶
func CodeExtendGTE(v string) predicate.UserIdentity
CodeExtendGTE applies the GTE predicate on the "code_extend" field.
func CodeExtendHasPrefix ¶
func CodeExtendHasPrefix(v string) predicate.UserIdentity
CodeExtendHasPrefix applies the HasPrefix predicate on the "code_extend" field.
func CodeExtendHasSuffix ¶
func CodeExtendHasSuffix(v string) predicate.UserIdentity
CodeExtendHasSuffix applies the HasSuffix predicate on the "code_extend" field.
func CodeExtendIn ¶
func CodeExtendIn(vs ...string) predicate.UserIdentity
CodeExtendIn applies the In predicate on the "code_extend" field.
func CodeExtendIsNil ¶
func CodeExtendIsNil() predicate.UserIdentity
CodeExtendIsNil applies the IsNil predicate on the "code_extend" field.
func CodeExtendLT ¶
func CodeExtendLT(v string) predicate.UserIdentity
CodeExtendLT applies the LT predicate on the "code_extend" field.
func CodeExtendLTE ¶
func CodeExtendLTE(v string) predicate.UserIdentity
CodeExtendLTE applies the LTE predicate on the "code_extend" field.
func CodeExtendNEQ ¶
func CodeExtendNEQ(v string) predicate.UserIdentity
CodeExtendNEQ applies the NEQ predicate on the "code_extend" field.
func CodeExtendNotIn ¶
func CodeExtendNotIn(vs ...string) predicate.UserIdentity
CodeExtendNotIn applies the NotIn predicate on the "code_extend" field.
func CodeExtendNotNil ¶
func CodeExtendNotNil() predicate.UserIdentity
CodeExtendNotNil applies the NotNil predicate on the "code_extend" field.
func CodeGT ¶
func CodeGT(v string) predicate.UserIdentity
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.UserIdentity
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.UserIdentity
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.UserIdentity
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.UserIdentity
CodeIn applies the In predicate on the "code" field.
func CodeIsNil ¶
func CodeIsNil() predicate.UserIdentity
CodeIsNil applies the IsNil predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.UserIdentity
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.UserIdentity
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.UserIdentity
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.UserIdentity
CodeNotIn applies the NotIn predicate on the "code" field.
func CodeNotNil ¶
func CodeNotNil() predicate.UserIdentity
CodeNotNil applies the NotNil predicate on the "code" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserIdentity
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserIdentity
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserIdentity
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserIdentity
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserIdentity
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserIdentity
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserIdentity
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserIdentity
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserIdentity
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int) predicate.UserIdentity
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int) predicate.UserIdentity
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int) predicate.UserIdentity
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int) predicate.UserIdentity
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int) predicate.UserIdentity
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int) predicate.UserIdentity
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int) predicate.UserIdentity
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int) predicate.UserIdentity
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int) predicate.UserIdentity
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasUser ¶
func HasUser() predicate.UserIdentity
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserIdentity
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserIdentity
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserIdentity
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserIdentity
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserIdentity
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserIdentity
IDNotIn applies the NotIn predicate on the ID field.
func KindEQ ¶
func KindEQ(v Kind) predicate.UserIdentity
KindEQ applies the EQ predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...Kind) predicate.UserIdentity
KindIn applies the In predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v Kind) predicate.UserIdentity
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...Kind) predicate.UserIdentity
KindNotIn applies the NotIn predicate on the "kind" field.
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func Not ¶
func Not(p predicate.UserIdentity) predicate.UserIdentity
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserIdentity) predicate.UserIdentity
Or groups predicates with the OR operator between them.
func StatusEQ ¶
func StatusEQ(v typex.SimpleStatus) predicate.UserIdentity
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...typex.SimpleStatus) predicate.UserIdentity
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.UserIdentity
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v typex.SimpleStatus) predicate.UserIdentity
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...typex.SimpleStatus) predicate.UserIdentity
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.UserIdentity
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s typex.SimpleStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserIdentity
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserIdentity
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserIdentity
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserIdentity
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserIdentity
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.UserIdentity
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserIdentity
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserIdentity
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserIdentity
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserIdentity
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.UserIdentity
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int) predicate.UserIdentity
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int) predicate.UserIdentity
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int) predicate.UserIdentity
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int) predicate.UserIdentity
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int) predicate.UserIdentity
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.UserIdentity
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int) predicate.UserIdentity
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int) predicate.UserIdentity
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int) predicate.UserIdentity
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int) predicate.UserIdentity
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.UserIdentity
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v int) predicate.UserIdentity
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.UserIdentity
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.UserIdentity
UserIDIn applies the In predicate on the "user_id" field.
func UserIDIsNil ¶
func UserIDIsNil() predicate.UserIdentity
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.UserIdentity
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.UserIdentity
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
func UserIDNotNil() predicate.UserIdentity
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Kind ¶
type Kind string
Kind defines the type for the "kind" enum field.
const ( KindName Kind = "name" KindEmail Kind = "email" KindPhone Kind = "phone" KindWechat Kind = "wechat" KindQq Kind = "qq" )
Kind values.
func (Kind) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Kind) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the UserIdentity queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByCodeExtend ¶
func ByCodeExtend(opts ...sql.OrderTermOption) OrderOption
ByCodeExtend orders the results by the code_extend field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind 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.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by 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.