gamerole

package
v0.0.0-...-914f9a4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the gamerole type in the database.
	Label = "game_role"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// FieldRoleID holds the string denoting the role_id field in the database.
	FieldRoleID = "role_id"
	// FieldLevel holds the string denoting the level field in the database.
	FieldLevel = "level"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// FieldRegionName holds the string denoting the region_name field in the database.
	FieldRegionName = "region_name"
	// FieldNickName holds the string denoting the nick_name field in the database.
	FieldNickName = "nick_name"
	// FieldCreateAt holds the string denoting the create_at field in the database.
	FieldCreateAt = "create_at"
	// FieldUpdateAt holds the string denoting the update_at field in the database.
	FieldUpdateAt = "update_at"
	// Table holds the table name of the gamerole in the database.
	Table = "game_roles"
)

Variables

View Source
var (
	// AccountIDValidator is a validator for the "account_id" field. It is called by the builders before save.
	AccountIDValidator func(string) error
	// RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save.
	RoleIDValidator func(string) error
	// DefaultLevel holds the default value on creation for the "level" field.
	DefaultLevel int
	// DefaultRegion holds the default value on creation for the "region" field.
	DefaultRegion string
	// RegionValidator is a validator for the "region" field. It is called by the builders before save.
	RegionValidator func(string) error
	// DefaultRegionName holds the default value on creation for the "region_name" field.
	DefaultRegionName string
	// RegionNameValidator is a validator for the "region_name" field. It is called by the builders before save.
	RegionNameValidator func(string) error
	// DefaultNickName holds the default value on creation for the "nick_name" field.
	DefaultNickName string
	// NickNameValidator is a validator for the "nick_name" field. It is called by the builders before save.
	NickNameValidator func(string) error
	// DefaultCreateAt holds the default value on creation for the "create_at" field.
	DefaultCreateAt func() time.Time
	// DefaultUpdateAt holds the default value on creation for the "update_at" field.
	DefaultUpdateAt func() time.Time
	// UpdateDefaultUpdateAt holds the default value on update for the "update_at" field.
	UpdateDefaultUpdateAt func() time.Time
)

Columns holds all SQL columns for gamerole fields.

Functions

func AccountID

func AccountID(v string) predicate.GameRole

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDContains

func AccountIDContains(v string) predicate.GameRole

AccountIDContains applies the Contains predicate on the "account_id" field.

func AccountIDContainsFold

func AccountIDContainsFold(v string) predicate.GameRole

AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.

func AccountIDEQ

func AccountIDEQ(v string) predicate.GameRole

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDEqualFold

func AccountIDEqualFold(v string) predicate.GameRole

AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.

func AccountIDGT

func AccountIDGT(v string) predicate.GameRole

AccountIDGT applies the GT predicate on the "account_id" field.

func AccountIDGTE

func AccountIDGTE(v string) predicate.GameRole

AccountIDGTE applies the GTE predicate on the "account_id" field.

func AccountIDHasPrefix

func AccountIDHasPrefix(v string) predicate.GameRole

AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.

func AccountIDHasSuffix

func AccountIDHasSuffix(v string) predicate.GameRole

AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...string) predicate.GameRole

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDLT

func AccountIDLT(v string) predicate.GameRole

AccountIDLT applies the LT predicate on the "account_id" field.

func AccountIDLTE

func AccountIDLTE(v string) predicate.GameRole

AccountIDLTE applies the LTE predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v string) predicate.GameRole

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...string) predicate.GameRole

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func And

func And(predicates ...predicate.GameRole) predicate.GameRole

And groups predicates with the AND operator between them.

func CreateAt

func CreateAt(v time.Time) predicate.GameRole

CreateAt applies equality check predicate on the "create_at" field. It's identical to CreateAtEQ.

func CreateAtEQ

func CreateAtEQ(v time.Time) predicate.GameRole

CreateAtEQ applies the EQ predicate on the "create_at" field.

func CreateAtGT

func CreateAtGT(v time.Time) predicate.GameRole

CreateAtGT applies the GT predicate on the "create_at" field.

func CreateAtGTE

func CreateAtGTE(v time.Time) predicate.GameRole

CreateAtGTE applies the GTE predicate on the "create_at" field.

func CreateAtIn

func CreateAtIn(vs ...time.Time) predicate.GameRole

CreateAtIn applies the In predicate on the "create_at" field.

func CreateAtLT

func CreateAtLT(v time.Time) predicate.GameRole

CreateAtLT applies the LT predicate on the "create_at" field.

func CreateAtLTE

func CreateAtLTE(v time.Time) predicate.GameRole

CreateAtLTE applies the LTE predicate on the "create_at" field.

func CreateAtNEQ

func CreateAtNEQ(v time.Time) predicate.GameRole

CreateAtNEQ applies the NEQ predicate on the "create_at" field.

func CreateAtNotIn

func CreateAtNotIn(vs ...time.Time) predicate.GameRole

CreateAtNotIn applies the NotIn predicate on the "create_at" field.

func ID

func ID(id int64) predicate.GameRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.GameRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.GameRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.GameRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.GameRole

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.GameRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.GameRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.GameRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.GameRole

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int) predicate.GameRole

Level applies equality check predicate on the "level" field. It's identical to LevelEQ.

func LevelEQ

func LevelEQ(v int) predicate.GameRole

LevelEQ applies the EQ predicate on the "level" field.

func LevelGT

func LevelGT(v int) predicate.GameRole

LevelGT applies the GT predicate on the "level" field.

func LevelGTE

func LevelGTE(v int) predicate.GameRole

LevelGTE applies the GTE predicate on the "level" field.

func LevelIn

func LevelIn(vs ...int) predicate.GameRole

LevelIn applies the In predicate on the "level" field.

func LevelLT

func LevelLT(v int) predicate.GameRole

LevelLT applies the LT predicate on the "level" field.

func LevelLTE

func LevelLTE(v int) predicate.GameRole

LevelLTE applies the LTE predicate on the "level" field.

func LevelNEQ

func LevelNEQ(v int) predicate.GameRole

LevelNEQ applies the NEQ predicate on the "level" field.

func LevelNotIn

func LevelNotIn(vs ...int) predicate.GameRole

LevelNotIn applies the NotIn predicate on the "level" field.

func NickName

func NickName(v string) predicate.GameRole

NickName applies equality check predicate on the "nick_name" field. It's identical to NickNameEQ.

func NickNameContains

func NickNameContains(v string) predicate.GameRole

NickNameContains applies the Contains predicate on the "nick_name" field.

func NickNameContainsFold

func NickNameContainsFold(v string) predicate.GameRole

NickNameContainsFold applies the ContainsFold predicate on the "nick_name" field.

func NickNameEQ

func NickNameEQ(v string) predicate.GameRole

NickNameEQ applies the EQ predicate on the "nick_name" field.

func NickNameEqualFold

func NickNameEqualFold(v string) predicate.GameRole

NickNameEqualFold applies the EqualFold predicate on the "nick_name" field.

func NickNameGT

func NickNameGT(v string) predicate.GameRole

NickNameGT applies the GT predicate on the "nick_name" field.

func NickNameGTE

func NickNameGTE(v string) predicate.GameRole

NickNameGTE applies the GTE predicate on the "nick_name" field.

func NickNameHasPrefix

func NickNameHasPrefix(v string) predicate.GameRole

NickNameHasPrefix applies the HasPrefix predicate on the "nick_name" field.

func NickNameHasSuffix

func NickNameHasSuffix(v string) predicate.GameRole

NickNameHasSuffix applies the HasSuffix predicate on the "nick_name" field.

func NickNameIn

func NickNameIn(vs ...string) predicate.GameRole

NickNameIn applies the In predicate on the "nick_name" field.

func NickNameLT

func NickNameLT(v string) predicate.GameRole

NickNameLT applies the LT predicate on the "nick_name" field.

func NickNameLTE

func NickNameLTE(v string) predicate.GameRole

NickNameLTE applies the LTE predicate on the "nick_name" field.

func NickNameNEQ

func NickNameNEQ(v string) predicate.GameRole

NickNameNEQ applies the NEQ predicate on the "nick_name" field.

func NickNameNotIn

func NickNameNotIn(vs ...string) predicate.GameRole

NickNameNotIn applies the NotIn predicate on the "nick_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GameRole) predicate.GameRole

Or groups predicates with the OR operator between them.

func Region

func Region(v string) predicate.GameRole

Region applies equality check predicate on the "region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.GameRole

RegionContains applies the Contains predicate on the "region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.GameRole

RegionContainsFold applies the ContainsFold predicate on the "region" field.

func RegionEQ

func RegionEQ(v string) predicate.GameRole

RegionEQ applies the EQ predicate on the "region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.GameRole

RegionEqualFold applies the EqualFold predicate on the "region" field.

func RegionGT

func RegionGT(v string) predicate.GameRole

RegionGT applies the GT predicate on the "region" field.

func RegionGTE

func RegionGTE(v string) predicate.GameRole

RegionGTE applies the GTE predicate on the "region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.GameRole

RegionHasPrefix applies the HasPrefix predicate on the "region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.GameRole

RegionHasSuffix applies the HasSuffix predicate on the "region" field.

func RegionIn

func RegionIn(vs ...string) predicate.GameRole

RegionIn applies the In predicate on the "region" field.

func RegionLT

func RegionLT(v string) predicate.GameRole

RegionLT applies the LT predicate on the "region" field.

func RegionLTE

func RegionLTE(v string) predicate.GameRole

RegionLTE applies the LTE predicate on the "region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.GameRole

RegionNEQ applies the NEQ predicate on the "region" field.

func RegionName

func RegionName(v string) predicate.GameRole

RegionName applies equality check predicate on the "region_name" field. It's identical to RegionNameEQ.

func RegionNameContains

func RegionNameContains(v string) predicate.GameRole

RegionNameContains applies the Contains predicate on the "region_name" field.

func RegionNameContainsFold

func RegionNameContainsFold(v string) predicate.GameRole

RegionNameContainsFold applies the ContainsFold predicate on the "region_name" field.

func RegionNameEQ

func RegionNameEQ(v string) predicate.GameRole

RegionNameEQ applies the EQ predicate on the "region_name" field.

func RegionNameEqualFold

func RegionNameEqualFold(v string) predicate.GameRole

RegionNameEqualFold applies the EqualFold predicate on the "region_name" field.

func RegionNameGT

func RegionNameGT(v string) predicate.GameRole

RegionNameGT applies the GT predicate on the "region_name" field.

func RegionNameGTE

func RegionNameGTE(v string) predicate.GameRole

RegionNameGTE applies the GTE predicate on the "region_name" field.

func RegionNameHasPrefix

func RegionNameHasPrefix(v string) predicate.GameRole

RegionNameHasPrefix applies the HasPrefix predicate on the "region_name" field.

func RegionNameHasSuffix

func RegionNameHasSuffix(v string) predicate.GameRole

RegionNameHasSuffix applies the HasSuffix predicate on the "region_name" field.

func RegionNameIn

func RegionNameIn(vs ...string) predicate.GameRole

RegionNameIn applies the In predicate on the "region_name" field.

func RegionNameLT

func RegionNameLT(v string) predicate.GameRole

RegionNameLT applies the LT predicate on the "region_name" field.

func RegionNameLTE

func RegionNameLTE(v string) predicate.GameRole

RegionNameLTE applies the LTE predicate on the "region_name" field.

func RegionNameNEQ

func RegionNameNEQ(v string) predicate.GameRole

RegionNameNEQ applies the NEQ predicate on the "region_name" field.

func RegionNameNotIn

func RegionNameNotIn(vs ...string) predicate.GameRole

RegionNameNotIn applies the NotIn predicate on the "region_name" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.GameRole

RegionNotIn applies the NotIn predicate on the "region" field.

func RoleID

func RoleID(v string) predicate.GameRole

RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.

func RoleIDContains

func RoleIDContains(v string) predicate.GameRole

RoleIDContains applies the Contains predicate on the "role_id" field.

func RoleIDContainsFold

func RoleIDContainsFold(v string) predicate.GameRole

RoleIDContainsFold applies the ContainsFold predicate on the "role_id" field.

func RoleIDEQ

func RoleIDEQ(v string) predicate.GameRole

RoleIDEQ applies the EQ predicate on the "role_id" field.

func RoleIDEqualFold

func RoleIDEqualFold(v string) predicate.GameRole

RoleIDEqualFold applies the EqualFold predicate on the "role_id" field.

func RoleIDGT

func RoleIDGT(v string) predicate.GameRole

RoleIDGT applies the GT predicate on the "role_id" field.

func RoleIDGTE

func RoleIDGTE(v string) predicate.GameRole

RoleIDGTE applies the GTE predicate on the "role_id" field.

func RoleIDHasPrefix

func RoleIDHasPrefix(v string) predicate.GameRole

RoleIDHasPrefix applies the HasPrefix predicate on the "role_id" field.

func RoleIDHasSuffix

func RoleIDHasSuffix(v string) predicate.GameRole

RoleIDHasSuffix applies the HasSuffix predicate on the "role_id" field.

func RoleIDIn

func RoleIDIn(vs ...string) predicate.GameRole

RoleIDIn applies the In predicate on the "role_id" field.

func RoleIDLT

func RoleIDLT(v string) predicate.GameRole

RoleIDLT applies the LT predicate on the "role_id" field.

func RoleIDLTE

func RoleIDLTE(v string) predicate.GameRole

RoleIDLTE applies the LTE predicate on the "role_id" field.

func RoleIDNEQ

func RoleIDNEQ(v string) predicate.GameRole

RoleIDNEQ applies the NEQ predicate on the "role_id" field.

func RoleIDNotIn

func RoleIDNotIn(vs ...string) predicate.GameRole

RoleIDNotIn applies the NotIn predicate on the "role_id" field.

func UpdateAt

func UpdateAt(v time.Time) predicate.GameRole

UpdateAt applies equality check predicate on the "update_at" field. It's identical to UpdateAtEQ.

func UpdateAtEQ

func UpdateAtEQ(v time.Time) predicate.GameRole

UpdateAtEQ applies the EQ predicate on the "update_at" field.

func UpdateAtGT

func UpdateAtGT(v time.Time) predicate.GameRole

UpdateAtGT applies the GT predicate on the "update_at" field.

func UpdateAtGTE

func UpdateAtGTE(v time.Time) predicate.GameRole

UpdateAtGTE applies the GTE predicate on the "update_at" field.

func UpdateAtIn

func UpdateAtIn(vs ...time.Time) predicate.GameRole

UpdateAtIn applies the In predicate on the "update_at" field.

func UpdateAtLT

func UpdateAtLT(v time.Time) predicate.GameRole

UpdateAtLT applies the LT predicate on the "update_at" field.

func UpdateAtLTE

func UpdateAtLTE(v time.Time) predicate.GameRole

UpdateAtLTE applies the LTE predicate on the "update_at" field.

func UpdateAtNEQ

func UpdateAtNEQ(v time.Time) predicate.GameRole

UpdateAtNEQ applies the NEQ predicate on the "update_at" field.

func UpdateAtNotIn

func UpdateAtNotIn(vs ...time.Time) predicate.GameRole

UpdateAtNotIn applies the NotIn predicate on the "update_at" field.

func UserID

func UserID(v int64) predicate.GameRole

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.GameRole

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v int64) predicate.GameRole

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v int64) predicate.GameRole

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.GameRole

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v int64) predicate.GameRole

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v int64) predicate.GameRole

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.GameRole

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.GameRole

UserIDNotIn applies the NotIn predicate on the "user_id" 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