member

package
v0.0.0-...-2fd3d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// 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"
	// FieldGid holds the string denoting the gid field in the database.
	FieldGid = "gid"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldGender holds the string denoting the gender field in the database.
	FieldGender = "gender"
	// FieldSignature holds the string denoting the signature field in the database.
	FieldSignature = "signature"

	// EdgeLoginLogs holds the string denoting the loginlogs edge name in mutations.
	EdgeLoginLogs = "loginLogs"
	// EdgeNoteArticles holds the string denoting the notearticles edge name in mutations.
	EdgeNoteArticles = "noteArticles"
	// EdgeNoteFilesystem holds the string denoting the notefilesystem edge name in mutations.
	EdgeNoteFilesystem = "noteFilesystem"

	// Table holds the table name of the member in the database.
	Table = "member"
	// LoginLogsTable is the table the holds the loginLogs relation/edge.
	LoginLogsTable = "member_login_log"
	// LoginLogsInverseTable is the table name for the MemberLoginLog entity.
	// It exists in this package in order to avoid circular dependency with the "memberloginlog" package.
	LoginLogsInverseTable = "member_login_log"
	// LoginLogsColumn is the table column denoting the loginLogs relation/edge.
	LoginLogsColumn = "member_login_logs"
	// NoteArticlesTable is the table the holds the noteArticles relation/edge.
	NoteArticlesTable = "note_articles"
	// NoteArticlesInverseTable is the table name for the NoteArticle entity.
	// It exists in this package in order to avoid circular dependency with the "notearticle" package.
	NoteArticlesInverseTable = "note_articles"
	// NoteArticlesColumn is the table column denoting the noteArticles relation/edge.
	NoteArticlesColumn = "member_note_articles"
	// NoteFilesystemTable is the table the holds the noteFilesystem relation/edge.
	NoteFilesystemTable = "note_filesystem"
	// NoteFilesystemInverseTable is the table name for the NoteFilesystem entity.
	// It exists in this package in order to avoid circular dependency with the "notefilesystem" package.
	NoteFilesystemInverseTable = "note_filesystem"
	// NoteFilesystemColumn is the table column denoting the noteFilesystem relation/edge.
	NoteFilesystemColumn = "member_note_filesystem"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultGid holds the default value on creation for the gid field.
	DefaultGid func() uuid.UUID
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// NicknameValidator is a validator for the "nickname" field. It is called by the builders before save.
	NicknameValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// DefaultGender holds the default value on creation for the gender field.
	DefaultGender int
	// SignatureValidator is a validator for the "signature" field. It is called by the builders before save.
	SignatureValidator func(string) error
)

Columns holds all SQL columns for member fields.

Functions

func And

func And(predicates ...predicate.Member) predicate.Member

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Member

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Member

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Member

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Member

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Member

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Member

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Member

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Member

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Member

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Email

func Email(v string) predicate.Member

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Member

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Member

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Member

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Member

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Member

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Member

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Member

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Member

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Member

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Member

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Member

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Member

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Member

EmailNotIn applies the NotIn predicate on the "email" field.

func Gender

func Gender(v int) predicate.Member

Gender applies equality check predicate on the "gender" field. It's identical to GenderEQ.

func GenderEQ

func GenderEQ(v int) predicate.Member

GenderEQ applies the EQ predicate on the "gender" field.

func GenderGT

func GenderGT(v int) predicate.Member

GenderGT applies the GT predicate on the "gender" field.

func GenderGTE

func GenderGTE(v int) predicate.Member

GenderGTE applies the GTE predicate on the "gender" field.

func GenderIn

func GenderIn(vs ...int) predicate.Member

GenderIn applies the In predicate on the "gender" field.

func GenderIsNil

func GenderIsNil() predicate.Member

GenderIsNil applies the IsNil predicate on the "gender" field.

func GenderLT

func GenderLT(v int) predicate.Member

GenderLT applies the LT predicate on the "gender" field.

func GenderLTE

func GenderLTE(v int) predicate.Member

GenderLTE applies the LTE predicate on the "gender" field.

func GenderNEQ

func GenderNEQ(v int) predicate.Member

GenderNEQ applies the NEQ predicate on the "gender" field.

func GenderNotIn

func GenderNotIn(vs ...int) predicate.Member

GenderNotIn applies the NotIn predicate on the "gender" field.

func GenderNotNil

func GenderNotNil() predicate.Member

GenderNotNil applies the NotNil predicate on the "gender" field.

func Gid

func Gid(v uuid.UUID) predicate.Member

Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.

func GidEQ

func GidEQ(v uuid.UUID) predicate.Member

GidEQ applies the EQ predicate on the "gid" field.

func GidGT

func GidGT(v uuid.UUID) predicate.Member

GidGT applies the GT predicate on the "gid" field.

func GidGTE

func GidGTE(v uuid.UUID) predicate.Member

GidGTE applies the GTE predicate on the "gid" field.

func GidIn

func GidIn(vs ...uuid.UUID) predicate.Member

GidIn applies the In predicate on the "gid" field.

func GidLT

func GidLT(v uuid.UUID) predicate.Member

GidLT applies the LT predicate on the "gid" field.

func GidLTE

func GidLTE(v uuid.UUID) predicate.Member

GidLTE applies the LTE predicate on the "gid" field.

func GidNEQ

func GidNEQ(v uuid.UUID) predicate.Member

GidNEQ applies the NEQ predicate on the "gid" field.

func GidNotIn

func GidNotIn(vs ...uuid.UUID) predicate.Member

GidNotIn applies the NotIn predicate on the "gid" field.

func HasLoginLogs

func HasLoginLogs() predicate.Member

HasLoginLogs applies the HasEdge predicate on the "loginLogs" edge.

func HasLoginLogsWith

func HasLoginLogsWith(preds ...predicate.MemberLoginLog) predicate.Member

HasLoginLogsWith applies the HasEdge predicate on the "loginLogs" edge with a given conditions (other predicates).

func HasNoteArticles

func HasNoteArticles() predicate.Member

HasNoteArticles applies the HasEdge predicate on the "noteArticles" edge.

func HasNoteArticlesWith

func HasNoteArticlesWith(preds ...predicate.NoteArticle) predicate.Member

HasNoteArticlesWith applies the HasEdge predicate on the "noteArticles" edge with a given conditions (other predicates).

func HasNoteFilesystem

func HasNoteFilesystem() predicate.Member

HasNoteFilesystem applies the HasEdge predicate on the "noteFilesystem" edge.

func HasNoteFilesystemWith

func HasNoteFilesystemWith(preds ...predicate.NoteFilesystem) predicate.Member

HasNoteFilesystemWith applies the HasEdge predicate on the "noteFilesystem" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Member

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Member

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Member

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Member

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Member

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Member

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Member

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Member

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Member

IDNotIn applies the NotIn predicate on the ID field.

func Nickname

func Nickname(v string) predicate.Member

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.Member

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.Member

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.Member

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.Member

NicknameEqualFold applies the EqualFold predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.Member

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.Member

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.Member

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.Member

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

func NicknameIn(vs ...string) predicate.Member

NicknameIn applies the In predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.Member

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.Member

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.Member

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

func NicknameNotIn(vs ...string) predicate.Member

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Member) predicate.Member

Or groups list of predicates with the OR operator between them.

func Password

func Password(v string) predicate.Member

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.Member

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Member

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.Member

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Member

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.Member

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.Member

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Member

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Member

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.Member

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.Member

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.Member

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.Member

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.Member

PasswordNotIn applies the NotIn predicate on the "password" field.

func Signature

func Signature(v string) predicate.Member

Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.

func SignatureContains

func SignatureContains(v string) predicate.Member

SignatureContains applies the Contains predicate on the "signature" field.

func SignatureContainsFold

func SignatureContainsFold(v string) predicate.Member

SignatureContainsFold applies the ContainsFold predicate on the "signature" field.

func SignatureEQ

func SignatureEQ(v string) predicate.Member

SignatureEQ applies the EQ predicate on the "signature" field.

func SignatureEqualFold

func SignatureEqualFold(v string) predicate.Member

SignatureEqualFold applies the EqualFold predicate on the "signature" field.

func SignatureGT

func SignatureGT(v string) predicate.Member

SignatureGT applies the GT predicate on the "signature" field.

func SignatureGTE

func SignatureGTE(v string) predicate.Member

SignatureGTE applies the GTE predicate on the "signature" field.

func SignatureHasPrefix

func SignatureHasPrefix(v string) predicate.Member

SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.

func SignatureHasSuffix

func SignatureHasSuffix(v string) predicate.Member

SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.

func SignatureIn

func SignatureIn(vs ...string) predicate.Member

SignatureIn applies the In predicate on the "signature" field.

func SignatureLT

func SignatureLT(v string) predicate.Member

SignatureLT applies the LT predicate on the "signature" field.

func SignatureLTE

func SignatureLTE(v string) predicate.Member

SignatureLTE applies the LTE predicate on the "signature" field.

func SignatureNEQ

func SignatureNEQ(v string) predicate.Member

SignatureNEQ applies the NEQ predicate on the "signature" field.

func SignatureNotIn

func SignatureNotIn(vs ...string) predicate.Member

SignatureNotIn applies the NotIn predicate on the "signature" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Member

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Member

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Member

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Member

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Member

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Member

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Member

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Member

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Member

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL