sysuserrole

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sysuserrole type in the database.
	Label = "sys_user_role"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIsDel holds the string denoting the is_del field in the database.
	FieldIsDel = "is_del"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "crtd_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "uptd_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "dltd_at"
	// 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 sysuserrole in the database.
	Table = "sys_user_roles"
)

Variables

View Source
var (
	// DefaultIsDel holds the default value on creation for the "is_del" field.
	DefaultIsDel bool
	// 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
	// UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
	UserIDValidator func(string) error
	// RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save.
	RoleIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for sysuserrole fields.

Functions

func And

func And(predicates ...predicate.SysUserRole) predicate.SysUserRole

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.SysUserRole

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SysUserRole

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SysUserRole

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SysUserRole

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SysUserRole

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SysUserRole

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SysUserRole

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.SysUserRole

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.SysUserRole

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.SysUserRole

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.SysUserRole

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.SysUserRole

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.SysUserRole

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.SysUserRole

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.SysUserRole

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.SysUserRole

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.SysUserRole

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.SysUserRole

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.SysUserRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.SysUserRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.SysUserRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.SysUserRole

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.SysUserRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.SysUserRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.SysUserRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.SysUserRole

IDNotIn applies the NotIn predicate on the ID field.

func IsDel

func IsDel(v bool) predicate.SysUserRole

IsDel applies equality check predicate on the "is_del" field. It's identical to IsDelEQ.

func IsDelEQ

func IsDelEQ(v bool) predicate.SysUserRole

IsDelEQ applies the EQ predicate on the "is_del" field.

func IsDelNEQ

func IsDelNEQ(v bool) predicate.SysUserRole

IsDelNEQ applies the NEQ predicate on the "is_del" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SysUserRole) predicate.SysUserRole

Or groups predicates with the OR operator between them.

func RoleID

func RoleID(v string) predicate.SysUserRole

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

func RoleIDContains

func RoleIDContains(v string) predicate.SysUserRole

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

func RoleIDContainsFold

func RoleIDContainsFold(v string) predicate.SysUserRole

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

func RoleIDEQ

func RoleIDEQ(v string) predicate.SysUserRole

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

func RoleIDEqualFold

func RoleIDEqualFold(v string) predicate.SysUserRole

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

func RoleIDGT

func RoleIDGT(v string) predicate.SysUserRole

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

func RoleIDGTE

func RoleIDGTE(v string) predicate.SysUserRole

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

func RoleIDHasPrefix

func RoleIDHasPrefix(v string) predicate.SysUserRole

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

func RoleIDHasSuffix

func RoleIDHasSuffix(v string) predicate.SysUserRole

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

func RoleIDIn

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

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

func RoleIDLT

func RoleIDLT(v string) predicate.SysUserRole

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

func RoleIDLTE

func RoleIDLTE(v string) predicate.SysUserRole

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

func RoleIDNEQ

func RoleIDNEQ(v string) predicate.SysUserRole

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

func RoleIDNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.SysUserRole

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.SysUserRole

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.SysUserRole

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.SysUserRole

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.SysUserRole

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.SysUserRole

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.SysUserRole

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v string) predicate.SysUserRole

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

func UserIDContains

func UserIDContains(v string) predicate.SysUserRole

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.SysUserRole

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.SysUserRole

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.SysUserRole

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.SysUserRole

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

func UserIDGTE

func UserIDGTE(v string) predicate.SysUserRole

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

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.SysUserRole

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.SysUserRole

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.SysUserRole

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

func UserIDLT

func UserIDLT(v string) predicate.SysUserRole

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

func UserIDLTE

func UserIDLTE(v string) predicate.SysUserRole

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

func UserIDNEQ

func UserIDNEQ(v string) predicate.SysUserRole

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

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.SysUserRole

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