rolepermissions

package
v0.3.9-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rolepermissions type in the database.
	Label = "role_permissions"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldRoleID holds the string denoting the role_id field in the database.
	FieldRoleID = "role_id"
	// FieldPermissionID holds the string denoting the permission_id field in the database.
	FieldPermissionID = "permission_id"
	// EdgeLionRoles holds the string denoting the lion_roles edge name in mutations.
	EdgeLionRoles = "lion_roles"
	// EdgeLionPermissions holds the string denoting the lion_permissions edge name in mutations.
	EdgeLionPermissions = "lion_permissions"
	// Table holds the table name of the rolepermissions in the database.
	Table = "lion_role_permissions"
	// LionRolesTable is the table that holds the lion_roles relation/edge.
	LionRolesTable = "lion_role_permissions"
	// LionRolesInverseTable is the table name for the Roles entity.
	// It exists in this package in order to avoid circular dependency with the "roles" package.
	LionRolesInverseTable = "lion_roles"
	// LionRolesColumn is the table column denoting the lion_roles relation/edge.
	LionRolesColumn = "role_id"
	// LionPermissionsTable is the table that holds the lion_permissions relation/edge.
	LionPermissionsTable = "lion_role_permissions"
	// LionPermissionsInverseTable is the table name for the Permissions entity.
	// It exists in this package in order to avoid circular dependency with the "permissions" package.
	LionPermissionsInverseTable = "lion_permissions"
	// LionPermissionsColumn is the table column denoting the lion_permissions relation/edge.
	LionPermissionsColumn = "permission_id"
)

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
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save.
	RoleIDValidator func(int) error
	// PermissionIDValidator is a validator for the "permission_id" field. It is called by the builders before save.
	PermissionIDValidator func(int) error
)

Columns holds all SQL columns for rolepermissions fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.RolePermissions

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.RolePermissions

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.RolePermissions

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.RolePermissions

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.RolePermissions

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.RolePermissions

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.RolePermissions

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.RolePermissions

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.RolePermissions

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.RolePermissions

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.RolePermissions

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.RolePermissions

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.RolePermissions

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.RolePermissions

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.RolePermissions

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.RolePermissions

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.RolePermissions

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.RolePermissions

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func HasLionPermissions

func HasLionPermissions() predicate.RolePermissions

HasLionPermissions applies the HasEdge predicate on the "lion_permissions" edge.

func HasLionPermissionsWith

func HasLionPermissionsWith(preds ...predicate.Permissions) predicate.RolePermissions

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

func HasLionRoles

func HasLionRoles() predicate.RolePermissions

HasLionRoles applies the HasEdge predicate on the "lion_roles" edge.

func HasLionRolesWith

func HasLionRolesWith(preds ...predicate.Roles) predicate.RolePermissions

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.RolePermissions

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.RolePermissions

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.RolePermissions

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.RolePermissions

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.RolePermissions

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.RolePermissions

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PermissionID

func PermissionID(v int) predicate.RolePermissions

PermissionID applies equality check predicate on the "permission_id" field. It's identical to PermissionIDEQ.

func PermissionIDEQ

func PermissionIDEQ(v int) predicate.RolePermissions

PermissionIDEQ applies the EQ predicate on the "permission_id" field.

func PermissionIDIn

func PermissionIDIn(vs ...int) predicate.RolePermissions

PermissionIDIn applies the In predicate on the "permission_id" field.

func PermissionIDNEQ

func PermissionIDNEQ(v int) predicate.RolePermissions

PermissionIDNEQ applies the NEQ predicate on the "permission_id" field.

func PermissionIDNotIn

func PermissionIDNotIn(vs ...int) predicate.RolePermissions

PermissionIDNotIn applies the NotIn predicate on the "permission_id" field.

func RoleID

func RoleID(v int) predicate.RolePermissions

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

func RoleIDEQ

func RoleIDEQ(v int) predicate.RolePermissions

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

func RoleIDIn

func RoleIDIn(vs ...int) predicate.RolePermissions

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

func RoleIDNEQ

func RoleIDNEQ(v int) predicate.RolePermissions

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

func RoleIDNotIn

func RoleIDNotIn(vs ...int) predicate.RolePermissions

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.RolePermissions

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.RolePermissions

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.RolePermissions

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.RolePermissions

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.RolePermissions

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.RolePermissions

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.RolePermissions

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int64) predicate.RolePermissions

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.RolePermissions

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.RolePermissions

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.RolePermissions

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.RolePermissions

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.RolePermissions

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.RolePermissions

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.RolePermissions

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.RolePermissions

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.RolePermissions

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.RolePermissions

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the RolePermissions queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLionPermissionsField

func ByLionPermissionsField(field string, opts ...sql.OrderTermOption) OrderOption

ByLionPermissionsField orders the results by lion_permissions field.

func ByLionRolesField

func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption

ByLionRolesField orders the results by lion_roles field.

func ByPermissionID

func ByPermissionID(opts ...sql.OrderTermOption) OrderOption

ByPermissionID orders the results by the permission_id field.

func ByRoleID

func ByRoleID(opts ...sql.OrderTermOption) OrderOption

ByRoleID orders the results by the role_id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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