userrole

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the userrole type in the database.
	Label = "user_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"
	// FieldRoleID holds the string denoting the role_id field in the database.
	FieldRoleID = "role_id"
	// Table holds the table name of the userrole in the database.
	Table = "sys_user_role"
)

Variables

View Source
var (
	// DefaultUserID holds the default value on creation for the "user_id" field.
	DefaultUserID int64
	// DefaultRoleID holds the default value on creation for the "role_id" field.
	DefaultRoleID int64
)

Columns holds all SQL columns for userrole fields.

Functions

func And

func And(predicates ...predicate.UserRole) predicate.UserRole

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.UserRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserRole) predicate.UserRole

Or groups predicates with the OR operator between them.

func RoleID

func RoleID(v int64) predicate.UserRole

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

func RoleIDEQ

func RoleIDEQ(v int64) predicate.UserRole

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

func RoleIDGT

func RoleIDGT(v int64) predicate.UserRole

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

func RoleIDGTE

func RoleIDGTE(v int64) predicate.UserRole

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

func RoleIDIn

func RoleIDIn(vs ...int64) predicate.UserRole

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

func RoleIDLT

func RoleIDLT(v int64) predicate.UserRole

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

func RoleIDLTE

func RoleIDLTE(v int64) predicate.UserRole

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

func RoleIDNEQ

func RoleIDNEQ(v int64) predicate.UserRole

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

func RoleIDNotIn

func RoleIDNotIn(vs ...int64) predicate.UserRole

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

func UserID

func UserID(v int64) predicate.UserRole

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

func UserIDEQ

func UserIDEQ(v int64) predicate.UserRole

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

func UserIDGT

func UserIDGT(v int64) predicate.UserRole

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

func UserIDGTE

func UserIDGTE(v int64) predicate.UserRole

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

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v int64) predicate.UserRole

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

func UserIDLTE

func UserIDLTE(v int64) predicate.UserRole

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

func UserIDNEQ

func UserIDNEQ(v int64) predicate.UserRole

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

func UserIDNotIn

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

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