usergroup

package
v1.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usergroup type in the database.
	Label = "user_group"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldHomepage holds the string denoting the homepage field in the database.
	FieldHomepage = "homepage"
	// 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"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the usergroup in the database.
	Table = "user_group"
	// UsersTable is the table the holds the users relation/edge. The primary key declared below.
	UsersTable = "user_group_users"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "user_profile"
)

Variables

View Source
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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save.
	AvatarURLValidator func(string) error
	// HomepageValidator is a validator for the "homepage" field. It is called by the builders before save.
	HomepageValidator 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
)

Columns holds all SQL columns for usergroup fields.

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"user_group_id", "user_id"}
)

Functions

func Address

func Address(v string) predicate.UserGroup

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.UserGroup

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.UserGroup

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.UserGroup

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.UserGroup

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.UserGroup

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.UserGroup

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.UserGroup

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.UserGroup

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.UserGroup

AddressIn applies the In predicate on the "address" field.

func AddressIsNil

func AddressIsNil() predicate.UserGroup

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.UserGroup

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.UserGroup

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.UserGroup

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.UserGroup

AddressNotIn applies the NotIn predicate on the "address" field.

func AddressNotNil

func AddressNotNil() predicate.UserGroup

AddressNotNil applies the NotNil predicate on the "address" field.

func And

func And(predicates ...predicate.UserGroup) predicate.UserGroup

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.UserGroup

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.UserGroup

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.UserGroup

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.UserGroup

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.UserGroup

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.UserGroup

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.UserGroup

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.UserGroup

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.UserGroup

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

func AvatarURLIn(vs ...string) predicate.UserGroup

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLIsNil

func AvatarURLIsNil() predicate.UserGroup

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.UserGroup

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.UserGroup

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.UserGroup

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

func AvatarURLNotIn(vs ...string) predicate.UserGroup

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func AvatarURLNotNil

func AvatarURLNotNil() predicate.UserGroup

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func CreateTime

func CreateTime(v time.Time) predicate.UserGroup

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.UserGroup

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.UserGroup

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.UserGroup

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.UserGroup

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.UserGroup

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.UserGroup

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.UserGroup

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.UserGroup

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasUsers

func HasUsers() predicate.UserGroup

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.UserGroup

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

func Homepage

func Homepage(v string) predicate.UserGroup

Homepage applies equality check predicate on the "homepage" field. It's identical to HomepageEQ.

func HomepageContains

func HomepageContains(v string) predicate.UserGroup

HomepageContains applies the Contains predicate on the "homepage" field.

func HomepageContainsFold

func HomepageContainsFold(v string) predicate.UserGroup

HomepageContainsFold applies the ContainsFold predicate on the "homepage" field.

func HomepageEQ

func HomepageEQ(v string) predicate.UserGroup

HomepageEQ applies the EQ predicate on the "homepage" field.

func HomepageEqualFold

func HomepageEqualFold(v string) predicate.UserGroup

HomepageEqualFold applies the EqualFold predicate on the "homepage" field.

func HomepageGT

func HomepageGT(v string) predicate.UserGroup

HomepageGT applies the GT predicate on the "homepage" field.

func HomepageGTE

func HomepageGTE(v string) predicate.UserGroup

HomepageGTE applies the GTE predicate on the "homepage" field.

func HomepageHasPrefix

func HomepageHasPrefix(v string) predicate.UserGroup

HomepageHasPrefix applies the HasPrefix predicate on the "homepage" field.

func HomepageHasSuffix

func HomepageHasSuffix(v string) predicate.UserGroup

HomepageHasSuffix applies the HasSuffix predicate on the "homepage" field.

func HomepageIn

func HomepageIn(vs ...string) predicate.UserGroup

HomepageIn applies the In predicate on the "homepage" field.

func HomepageIsNil

func HomepageIsNil() predicate.UserGroup

HomepageIsNil applies the IsNil predicate on the "homepage" field.

func HomepageLT

func HomepageLT(v string) predicate.UserGroup

HomepageLT applies the LT predicate on the "homepage" field.

func HomepageLTE

func HomepageLTE(v string) predicate.UserGroup

HomepageLTE applies the LTE predicate on the "homepage" field.

func HomepageNEQ

func HomepageNEQ(v string) predicate.UserGroup

HomepageNEQ applies the NEQ predicate on the "homepage" field.

func HomepageNotIn

func HomepageNotIn(vs ...string) predicate.UserGroup

HomepageNotIn applies the NotIn predicate on the "homepage" field.

func HomepageNotNil

func HomepageNotNil() predicate.UserGroup

HomepageNotNil applies the NotNil predicate on the "homepage" field.

func ID

func ID(id int) predicate.UserGroup

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserGroup

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserGroup

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserGroup

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserGroup

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserGroup

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserGroup

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.UserGroup

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.UserGroup

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.UserGroup

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.UserGroup

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.UserGroup

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.UserGroup

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.UserGroup

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.UserGroup

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.UserGroup

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.UserGroup

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.UserGroup

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.UserGroup

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.UserGroup

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.UserGroup

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserGroup) predicate.UserGroup

Or groups predicates with the OR operator between them.

func Sn

Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.

func SnContains

func SnContains(v string) predicate.UserGroup

SnContains applies the Contains predicate on the "sn" field.

func SnContainsFold

func SnContainsFold(v string) predicate.UserGroup

SnContainsFold applies the ContainsFold predicate on the "sn" field.

func SnEQ

func SnEQ(v string) predicate.UserGroup

SnEQ applies the EQ predicate on the "sn" field.

func SnEqualFold

func SnEqualFold(v string) predicate.UserGroup

SnEqualFold applies the EqualFold predicate on the "sn" field.

func SnGT

func SnGT(v string) predicate.UserGroup

SnGT applies the GT predicate on the "sn" field.

func SnGTE

func SnGTE(v string) predicate.UserGroup

SnGTE applies the GTE predicate on the "sn" field.

func SnHasPrefix

func SnHasPrefix(v string) predicate.UserGroup

SnHasPrefix applies the HasPrefix predicate on the "sn" field.

func SnHasSuffix

func SnHasSuffix(v string) predicate.UserGroup

SnHasSuffix applies the HasSuffix predicate on the "sn" field.

func SnIn

func SnIn(vs ...string) predicate.UserGroup

SnIn applies the In predicate on the "sn" field.

func SnLT

func SnLT(v string) predicate.UserGroup

SnLT applies the LT predicate on the "sn" field.

func SnLTE

func SnLTE(v string) predicate.UserGroup

SnLTE applies the LTE predicate on the "sn" field.

func SnNEQ

func SnNEQ(v string) predicate.UserGroup

SnNEQ applies the NEQ predicate on the "sn" field.

func SnNotIn

func SnNotIn(vs ...string) predicate.UserGroup

SnNotIn applies the NotIn predicate on the "sn" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.UserGroup

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.UserGroup

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.UserGroup

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.UserGroup

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.UserGroup

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.UserGroup

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.UserGroup

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.UserGroup

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.UserGroup

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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