Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Member) predicate.Member
- func CreateTime(v time.Time) predicate.Member
- func CreateTimeEQ(v time.Time) predicate.Member
- func CreateTimeGT(v time.Time) predicate.Member
- func CreateTimeGTE(v time.Time) predicate.Member
- func CreateTimeIn(vs ...time.Time) predicate.Member
- func CreateTimeLT(v time.Time) predicate.Member
- func CreateTimeLTE(v time.Time) predicate.Member
- func CreateTimeNEQ(v time.Time) predicate.Member
- func CreateTimeNotIn(vs ...time.Time) predicate.Member
- func DeleteTime(v time.Time) predicate.Member
- func DeleteTimeEQ(v time.Time) predicate.Member
- func DeleteTimeGT(v time.Time) predicate.Member
- func DeleteTimeGTE(v time.Time) predicate.Member
- func DeleteTimeIn(vs ...time.Time) predicate.Member
- func DeleteTimeIsNil() predicate.Member
- func DeleteTimeLT(v time.Time) predicate.Member
- func DeleteTimeLTE(v time.Time) predicate.Member
- func DeleteTimeNEQ(v time.Time) predicate.Member
- func DeleteTimeNotIn(vs ...time.Time) predicate.Member
- func DeleteTimeNotNil() predicate.Member
- func GroupID(v int) predicate.Member
- func GroupIDEQ(v int) predicate.Member
- func GroupIDGT(v int) predicate.Member
- func GroupIDGTE(v int) predicate.Member
- func GroupIDIn(vs ...int) predicate.Member
- func GroupIDIsNil() predicate.Member
- func GroupIDLT(v int) predicate.Member
- func GroupIDLTE(v int) predicate.Member
- func GroupIDNEQ(v int) predicate.Member
- func GroupIDNotIn(vs ...int) predicate.Member
- func GroupIDNotNil() predicate.Member
- func HasEmails() predicate.Member
- func HasEmailsWith(preds ...predicate.MemberEmail) predicate.Member
- func HasOwner() predicate.Member
- func HasOwnerWith(preds ...predicate.Group) predicate.Member
- func HasSettings() predicate.Member
- func HasSettingsWith(preds ...predicate.MemberSetting) predicate.Member
- func ID(id int) predicate.Member
- func IDEQ(id int) predicate.Member
- func IDGT(id int) predicate.Member
- func IDGTE(id int) predicate.Member
- func IDIn(ids ...int) predicate.Member
- func IDLT(id int) predicate.Member
- func IDLTE(id int) predicate.Member
- func IDNEQ(id int) predicate.Member
- func IDNotIn(ids ...int) predicate.Member
- func LastPwdAuth(v time.Time) predicate.Member
- func LastPwdAuthEQ(v time.Time) predicate.Member
- func LastPwdAuthGT(v time.Time) predicate.Member
- func LastPwdAuthGTE(v time.Time) predicate.Member
- func LastPwdAuthIn(vs ...time.Time) predicate.Member
- func LastPwdAuthIsNil() predicate.Member
- func LastPwdAuthLT(v time.Time) predicate.Member
- func LastPwdAuthLTE(v time.Time) predicate.Member
- func LastPwdAuthNEQ(v time.Time) predicate.Member
- func LastPwdAuthNotIn(vs ...time.Time) predicate.Member
- func LastPwdAuthNotNil() predicate.Member
- func Nickname(v string) predicate.Member
- func NicknameContains(v string) predicate.Member
- func NicknameContainsFold(v string) predicate.Member
- func NicknameEQ(v string) predicate.Member
- func NicknameEqualFold(v string) predicate.Member
- func NicknameGT(v string) predicate.Member
- func NicknameGTE(v string) predicate.Member
- func NicknameHasPrefix(v string) predicate.Member
- func NicknameHasSuffix(v string) predicate.Member
- func NicknameIn(vs ...string) predicate.Member
- func NicknameLT(v string) predicate.Member
- func NicknameLTE(v string) predicate.Member
- func NicknameNEQ(v string) predicate.Member
- func NicknameNotIn(vs ...string) predicate.Member
- func Not(p predicate.Member) predicate.Member
- func Or(predicates ...predicate.Member) predicate.Member
- func Password(v string) predicate.Member
- func PasswordContains(v string) predicate.Member
- func PasswordContainsFold(v string) predicate.Member
- func PasswordEQ(v string) predicate.Member
- func PasswordEqualFold(v string) predicate.Member
- func PasswordGT(v string) predicate.Member
- func PasswordGTE(v string) predicate.Member
- func PasswordHasPrefix(v string) predicate.Member
- func PasswordHasSuffix(v string) predicate.Member
- func PasswordIn(vs ...string) predicate.Member
- func PasswordIsNil() predicate.Member
- func PasswordLT(v string) predicate.Member
- func PasswordLTE(v string) predicate.Member
- func PasswordNEQ(v string) predicate.Member
- func PasswordNotIn(vs ...string) predicate.Member
- func PasswordNotNil() predicate.Member
- func Phone(v string) predicate.Member
- func PhoneContains(v string) predicate.Member
- func PhoneContainsFold(v string) predicate.Member
- func PhoneEQ(v string) predicate.Member
- func PhoneEqualFold(v string) predicate.Member
- func PhoneGT(v string) predicate.Member
- func PhoneGTE(v string) predicate.Member
- func PhoneHasPrefix(v string) predicate.Member
- func PhoneHasSuffix(v string) predicate.Member
- func PhoneIn(vs ...string) predicate.Member
- func PhoneIsNil() predicate.Member
- func PhoneLT(v string) predicate.Member
- func PhoneLTE(v string) predicate.Member
- func PhoneNEQ(v string) predicate.Member
- func PhoneNotIn(vs ...string) predicate.Member
- func PhoneNotNil() predicate.Member
- func Signature(v string) predicate.Member
- func SignatureContains(v string) predicate.Member
- func SignatureContainsFold(v string) predicate.Member
- func SignatureEQ(v string) predicate.Member
- func SignatureEqualFold(v string) predicate.Member
- func SignatureGT(v string) predicate.Member
- func SignatureGTE(v string) predicate.Member
- func SignatureHasPrefix(v string) predicate.Member
- func SignatureHasSuffix(v string) predicate.Member
- func SignatureIn(vs ...string) predicate.Member
- func SignatureLT(v string) predicate.Member
- func SignatureLTE(v string) predicate.Member
- func SignatureNEQ(v string) predicate.Member
- func SignatureNotIn(vs ...string) predicate.Member
- func Sn(v string) predicate.Member
- func SnContains(v string) predicate.Member
- func SnContainsFold(v string) predicate.Member
- func SnEQ(v string) predicate.Member
- func SnEqualFold(v string) predicate.Member
- func SnGT(v string) predicate.Member
- func SnGTE(v string) predicate.Member
- func SnHasPrefix(v string) predicate.Member
- func SnHasSuffix(v string) predicate.Member
- func SnIn(vs ...string) predicate.Member
- func SnLT(v string) predicate.Member
- func SnLTE(v string) predicate.Member
- func SnNEQ(v string) predicate.Member
- func SnNotIn(vs ...string) predicate.Member
- func StatusEQ(v Status) predicate.Member
- func StatusIn(vs ...Status) predicate.Member
- func StatusIsNil() predicate.Member
- func StatusNEQ(v Status) predicate.Member
- func StatusNotIn(vs ...Status) predicate.Member
- func StatusNotNil() predicate.Member
- func StatusValidator(s Status) error
- func UpdateTime(v time.Time) predicate.Member
- func UpdateTimeEQ(v time.Time) predicate.Member
- func UpdateTimeGT(v time.Time) predicate.Member
- func UpdateTimeGTE(v time.Time) predicate.Member
- func UpdateTimeIn(vs ...time.Time) predicate.Member
- func UpdateTimeLT(v time.Time) predicate.Member
- func UpdateTimeLTE(v time.Time) predicate.Member
- func UpdateTimeNEQ(v time.Time) predicate.Member
- func UpdateTimeNotIn(vs ...time.Time) predicate.Member
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the member type in the database. Label = "member" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSn holds the string denoting the sn field in the database. FieldSn = "sn" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSignature holds the string denoting the signature field in the database. FieldSignature = "signature" // FieldLastPwdAuth holds the string denoting the last_pwd_auth field in the database. FieldLastPwdAuth = "last_pwd_auth" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldDeleteTime holds the string denoting the delete_time field in the database. FieldDeleteTime = "delete_time" // EdgeEmails holds the string denoting the emails edge name in mutations. EdgeEmails = "emails" // EdgeSettings holds the string denoting the settings edge name in mutations. EdgeSettings = "settings" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the member in the database. Table = "member" // EmailsTable is the table the holds the emails relation/edge. EmailsTable = "member_email" // EmailsInverseTable is the table name for the MemberEmail entity. // It exists in this package in order to avoid circular dependency with the "memberemail" package. EmailsInverseTable = "member_email" // EmailsColumn is the table column denoting the emails relation/edge. EmailsColumn = "owner_id" // SettingsTable is the table the holds the settings relation/edge. The primary key declared below. SettingsTable = "member_settings" // SettingsInverseTable is the table name for the MemberSetting entity. // It exists in this package in order to avoid circular dependency with the "membersetting" package. SettingsInverseTable = "member_setting" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "member" // OwnerInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. OwnerInverseTable = "member_group" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "group_members" )
Variables ¶
var ( // DefaultSn holds the default value on creation for the "sn" field. DefaultSn func() string // SnValidator is a validator for the "sn" field. It is called by the builders before save. SnValidator func(string) error // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldSn, FieldNickname, FieldPhone, FieldPassword, FieldStatus, FieldSignature, FieldLastPwdAuth, FieldGroupID, FieldCreateTime, FieldUpdateTime, FieldDeleteTime, }
Columns holds all SQL columns for member fields.
var ForeignKeys = []string{
"group_members",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "member" table and are not defined as standalone fields in the schema.
var ( // SettingsPrimaryKey and SettingsColumn2 are the table columns denoting the // primary key for the settings relation (M2M). SettingsPrimaryKey = []string{"member_id", "member_setting_id"} )
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeleteTime ¶
DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.
func DeleteTimeEQ ¶
DeleteTimeEQ applies the EQ predicate on the "delete_time" field.
func DeleteTimeGT ¶
DeleteTimeGT applies the GT predicate on the "delete_time" field.
func DeleteTimeGTE ¶
DeleteTimeGTE applies the GTE predicate on the "delete_time" field.
func DeleteTimeIn ¶
DeleteTimeIn applies the In predicate on the "delete_time" field.
func DeleteTimeIsNil ¶
DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.
func DeleteTimeLT ¶
DeleteTimeLT applies the LT predicate on the "delete_time" field.
func DeleteTimeLTE ¶
DeleteTimeLTE applies the LTE predicate on the "delete_time" field.
func DeleteTimeNEQ ¶
DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.
func DeleteTimeNotIn ¶
DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.
func DeleteTimeNotNil ¶
DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.
func GroupID ¶ added in v1.0.2
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDGTE ¶ added in v1.0.2
GroupIDGTE applies the GTE predicate on the "group_id" field.
func GroupIDIsNil ¶ added in v1.0.2
GroupIDIsNil applies the IsNil predicate on the "group_id" field.
func GroupIDLTE ¶ added in v1.0.2
GroupIDLTE applies the LTE predicate on the "group_id" field.
func GroupIDNEQ ¶ added in v1.0.2
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶ added in v1.0.2
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func GroupIDNotNil ¶ added in v1.0.2
GroupIDNotNil applies the NotNil predicate on the "group_id" field.
func HasEmailsWith ¶ added in v1.0.2
func HasEmailsWith(preds ...predicate.MemberEmail) predicate.Member
HasEmailsWith applies the HasEdge predicate on the "emails" edge with a given conditions (other predicates).
func HasOwnerWith ¶ added in v1.0.2
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasSettings ¶ added in v1.0.2
HasSettings applies the HasEdge predicate on the "settings" edge.
func HasSettingsWith ¶ added in v1.0.2
func HasSettingsWith(preds ...predicate.MemberSetting) predicate.Member
HasSettingsWith applies the HasEdge predicate on the "settings" edge with a given conditions (other predicates).
func LastPwdAuth ¶
LastPwdAuth applies equality check predicate on the "last_pwd_auth" field. It's identical to LastPwdAuthEQ.
func LastPwdAuthEQ ¶
LastPwdAuthEQ applies the EQ predicate on the "last_pwd_auth" field.
func LastPwdAuthGT ¶
LastPwdAuthGT applies the GT predicate on the "last_pwd_auth" field.
func LastPwdAuthGTE ¶
LastPwdAuthGTE applies the GTE predicate on the "last_pwd_auth" field.
func LastPwdAuthIn ¶
LastPwdAuthIn applies the In predicate on the "last_pwd_auth" field.
func LastPwdAuthIsNil ¶
LastPwdAuthIsNil applies the IsNil predicate on the "last_pwd_auth" field.
func LastPwdAuthLT ¶
LastPwdAuthLT applies the LT predicate on the "last_pwd_auth" field.
func LastPwdAuthLTE ¶
LastPwdAuthLTE applies the LTE predicate on the "last_pwd_auth" field.
func LastPwdAuthNEQ ¶
LastPwdAuthNEQ applies the NEQ predicate on the "last_pwd_auth" field.
func LastPwdAuthNotIn ¶
LastPwdAuthNotIn applies the NotIn predicate on the "last_pwd_auth" field.
func LastPwdAuthNotNil ¶
LastPwdAuthNotNil applies the NotNil predicate on the "last_pwd_auth" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶ added in v1.0.4
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶ added in v1.0.4
PasswordNotNil applies the NotNil predicate on the "password" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func Signature ¶
Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.
func SignatureContains ¶
SignatureContains applies the Contains predicate on the "signature" field.
func SignatureContainsFold ¶
SignatureContainsFold applies the ContainsFold predicate on the "signature" field.
func SignatureEQ ¶
SignatureEQ applies the EQ predicate on the "signature" field.
func SignatureEqualFold ¶
SignatureEqualFold applies the EqualFold predicate on the "signature" field.
func SignatureGT ¶
SignatureGT applies the GT predicate on the "signature" field.
func SignatureGTE ¶
SignatureGTE applies the GTE predicate on the "signature" field.
func SignatureHasPrefix ¶
SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.
func SignatureHasSuffix ¶
SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.
func SignatureIn ¶
SignatureIn applies the In predicate on the "signature" field.
func SignatureLT ¶
SignatureLT applies the LT predicate on the "signature" field.
func SignatureLTE ¶
SignatureLTE applies the LTE predicate on the "signature" field.
func SignatureNEQ ¶
SignatureNEQ applies the NEQ predicate on the "signature" field.
func SignatureNotIn ¶
SignatureNotIn applies the NotIn predicate on the "signature" field.
func Sn ¶ added in v1.0.2
Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
func SnContains ¶ added in v1.0.2
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶ added in v1.0.2
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶ added in v1.0.2
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶ added in v1.0.2
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶ added in v1.0.2
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).