principalroles

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the principalroles type in the database.
	Label = "principal_roles"
	// 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"
	// FieldPrincipalType holds the string denoting the principal_type field in the database.
	FieldPrincipalType = "principal_type"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldRoleID holds the string denoting the role_id field in the database.
	FieldRoleID = "role_id"
	// FieldBindingStatus holds the string denoting the binding_status field in the database.
	FieldBindingStatus = "binding_status"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeLionRoles holds the string denoting the lion_roles edge name in mutations.
	EdgeLionRoles = "lion_roles"
	// Table holds the table name of the principalroles in the database.
	Table = "lion_principal_roles"
	// LionRolesTable is the table that holds the lion_roles relation/edge.
	LionRolesTable = "lion_principal_roles"
	// 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"
)

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
	// DefaultPrincipalType holds the default value on creation for the "principal_type" field.
	DefaultPrincipalType int
	// PrincipalIDValidator is a validator for the "principal_id" field. It is called by the builders before save.
	PrincipalIDValidator func(int) error
	// RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save.
	RoleIDValidator func(int) error
	// DefaultBindingStatus holds the default value on creation for the "binding_status" field.
	DefaultBindingStatus int
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

Columns holds all SQL columns for principalroles fields.

Functions

func And

And groups predicates with the AND operator between them.

func BindingStatus

func BindingStatus(v int) predicate.PrincipalRoles

BindingStatus applies equality check predicate on the "binding_status" field. It's identical to BindingStatusEQ.

func BindingStatusEQ

func BindingStatusEQ(v int) predicate.PrincipalRoles

BindingStatusEQ applies the EQ predicate on the "binding_status" field.

func BindingStatusGT

func BindingStatusGT(v int) predicate.PrincipalRoles

BindingStatusGT applies the GT predicate on the "binding_status" field.

func BindingStatusGTE

func BindingStatusGTE(v int) predicate.PrincipalRoles

BindingStatusGTE applies the GTE predicate on the "binding_status" field.

func BindingStatusIn

func BindingStatusIn(vs ...int) predicate.PrincipalRoles

BindingStatusIn applies the In predicate on the "binding_status" field.

func BindingStatusLT

func BindingStatusLT(v int) predicate.PrincipalRoles

BindingStatusLT applies the LT predicate on the "binding_status" field.

func BindingStatusLTE

func BindingStatusLTE(v int) predicate.PrincipalRoles

BindingStatusLTE applies the LTE predicate on the "binding_status" field.

func BindingStatusNEQ

func BindingStatusNEQ(v int) predicate.PrincipalRoles

BindingStatusNEQ applies the NEQ predicate on the "binding_status" field.

func BindingStatusNotIn

func BindingStatusNotIn(vs ...int) predicate.PrincipalRoles

BindingStatusNotIn applies the NotIn predicate on the "binding_status" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.PrincipalRoles

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.PrincipalRoles

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.PrincipalRoles

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.PrincipalRoles

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.PrincipalRoles

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.PrincipalRoles

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.PrincipalRoles

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.PrincipalRoles

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

func CreatedByEQ

func CreatedByEQ(v int64) predicate.PrincipalRoles

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

func CreatedByGT

func CreatedByGT(v int64) predicate.PrincipalRoles

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

func CreatedByGTE

func CreatedByGTE(v int64) predicate.PrincipalRoles

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.PrincipalRoles

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

func CreatedByLT

func CreatedByLT(v int64) predicate.PrincipalRoles

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

func CreatedByLTE

func CreatedByLTE(v int64) predicate.PrincipalRoles

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

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.PrincipalRoles

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.PrincipalRoles

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

func Description

func Description(v string) predicate.PrincipalRoles

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.PrincipalRoles

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.PrincipalRoles

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.PrincipalRoles

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.PrincipalRoles

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.PrincipalRoles

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.PrincipalRoles

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.PrincipalRoles

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.PrincipalRoles

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.PrincipalRoles

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.PrincipalRoles

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.PrincipalRoles

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.PrincipalRoles

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.PrincipalRoles

DescriptionNotIn applies the NotIn predicate on the "description" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.PrincipalRoles

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.PrincipalRoles

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.PrincipalRoles

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.PrincipalRoles

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.PrincipalRoles

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.PrincipalRoles

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.PrincipalRoles

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.PrincipalRoles

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.PrincipalRoles

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.PrincipalRoles

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.PrincipalRoles

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasLionRoles

func HasLionRoles() predicate.PrincipalRoles

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

func HasLionRolesWith

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

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.PrincipalRoles

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.PrincipalRoles

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.PrincipalRoles

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.PrincipalRoles

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.PrincipalRoles

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.PrincipalRoles

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.PrincipalRoles

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.PrincipalRoles

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PrincipalID

func PrincipalID(v int) predicate.PrincipalRoles

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v int) predicate.PrincipalRoles

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v int) predicate.PrincipalRoles

PrincipalIDGT applies the GT predicate on the "principal_id" field.

func PrincipalIDGTE

func PrincipalIDGTE(v int) predicate.PrincipalRoles

PrincipalIDGTE applies the GTE predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...int) predicate.PrincipalRoles

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDLT

func PrincipalIDLT(v int) predicate.PrincipalRoles

PrincipalIDLT applies the LT predicate on the "principal_id" field.

func PrincipalIDLTE

func PrincipalIDLTE(v int) predicate.PrincipalRoles

PrincipalIDLTE applies the LTE predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v int) predicate.PrincipalRoles

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...int) predicate.PrincipalRoles

PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.

func PrincipalType

func PrincipalType(v int) predicate.PrincipalRoles

PrincipalType applies equality check predicate on the "principal_type" field. It's identical to PrincipalTypeEQ.

func PrincipalTypeEQ

func PrincipalTypeEQ(v int) predicate.PrincipalRoles

PrincipalTypeEQ applies the EQ predicate on the "principal_type" field.

func PrincipalTypeGT

func PrincipalTypeGT(v int) predicate.PrincipalRoles

PrincipalTypeGT applies the GT predicate on the "principal_type" field.

func PrincipalTypeGTE

func PrincipalTypeGTE(v int) predicate.PrincipalRoles

PrincipalTypeGTE applies the GTE predicate on the "principal_type" field.

func PrincipalTypeIn

func PrincipalTypeIn(vs ...int) predicate.PrincipalRoles

PrincipalTypeIn applies the In predicate on the "principal_type" field.

func PrincipalTypeLT

func PrincipalTypeLT(v int) predicate.PrincipalRoles

PrincipalTypeLT applies the LT predicate on the "principal_type" field.

func PrincipalTypeLTE

func PrincipalTypeLTE(v int) predicate.PrincipalRoles

PrincipalTypeLTE applies the LTE predicate on the "principal_type" field.

func PrincipalTypeNEQ

func PrincipalTypeNEQ(v int) predicate.PrincipalRoles

PrincipalTypeNEQ applies the NEQ predicate on the "principal_type" field.

func PrincipalTypeNotIn

func PrincipalTypeNotIn(vs ...int) predicate.PrincipalRoles

PrincipalTypeNotIn applies the NotIn predicate on the "principal_type" field.

func RoleID

func RoleID(v int) predicate.PrincipalRoles

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

func RoleIDEQ

func RoleIDEQ(v int) predicate.PrincipalRoles

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

func RoleIDIn

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

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

func RoleIDNEQ

func RoleIDNEQ(v int) predicate.PrincipalRoles

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

func RoleIDNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.PrincipalRoles

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int64) predicate.PrincipalRoles

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

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.PrincipalRoles

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

func UpdatedByGT

func UpdatedByGT(v int64) predicate.PrincipalRoles

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

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.PrincipalRoles

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.PrincipalRoles

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

func UpdatedByLT

func UpdatedByLT(v int64) predicate.PrincipalRoles

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

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.PrincipalRoles

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

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.PrincipalRoles

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.PrincipalRoles

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 PrincipalRoles queries.

func ByBindingStatus

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

ByBindingStatus orders the results by the binding_status field.

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 ByDescription

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

ByDescription orders the results by the description field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByLionRolesField

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

ByLionRolesField orders the results by lion_roles field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

func ByPrincipalType

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

ByPrincipalType orders the results by the principal_type 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