groupassignment

package
v0.0.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the groupassignment type in the database.
	Label = "group_assignment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldGroupID holds the string denoting the group_id field in the database.
	FieldGroupID = "group_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldPriceMultiplier holds the string denoting the price_multiplier field in the database.
	FieldPriceMultiplier = "price_multiplier"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the groupassignment in the database.
	Table = "group_assignments"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "group_assignments"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "group_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "group_assignments"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

Columns holds all SQL columns for groupassignment fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.GroupAssignment

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.GroupAssignment

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.GroupAssignment

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.GroupAssignment

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.GroupAssignment

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.GroupAssignment

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.GroupAssignment

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

func CreatedAtNotIn

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

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

func GroupID

func GroupID(v int64) predicate.GroupAssignment

GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.

func GroupIDEQ

func GroupIDEQ(v int64) predicate.GroupAssignment

GroupIDEQ applies the EQ predicate on the "group_id" field.

func GroupIDIn

func GroupIDIn(vs ...int64) predicate.GroupAssignment

GroupIDIn applies the In predicate on the "group_id" field.

func GroupIDNEQ

func GroupIDNEQ(v int64) predicate.GroupAssignment

GroupIDNEQ applies the NEQ predicate on the "group_id" field.

func GroupIDNotIn

func GroupIDNotIn(vs ...int64) predicate.GroupAssignment

GroupIDNotIn applies the NotIn predicate on the "group_id" field.

func HasGroup

func HasGroup() predicate.GroupAssignment

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.GroupAssignment

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

func HasUser

func HasUser() predicate.GroupAssignment

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.GroupAssignment

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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 PriceMultiplier

func PriceMultiplier(v int) predicate.GroupAssignment

PriceMultiplier applies equality check predicate on the "price_multiplier" field. It's identical to PriceMultiplierEQ.

func PriceMultiplierEQ

func PriceMultiplierEQ(v int) predicate.GroupAssignment

PriceMultiplierEQ applies the EQ predicate on the "price_multiplier" field.

func PriceMultiplierGT

func PriceMultiplierGT(v int) predicate.GroupAssignment

PriceMultiplierGT applies the GT predicate on the "price_multiplier" field.

func PriceMultiplierGTE

func PriceMultiplierGTE(v int) predicate.GroupAssignment

PriceMultiplierGTE applies the GTE predicate on the "price_multiplier" field.

func PriceMultiplierIn

func PriceMultiplierIn(vs ...int) predicate.GroupAssignment

PriceMultiplierIn applies the In predicate on the "price_multiplier" field.

func PriceMultiplierIsNil

func PriceMultiplierIsNil() predicate.GroupAssignment

PriceMultiplierIsNil applies the IsNil predicate on the "price_multiplier" field.

func PriceMultiplierLT

func PriceMultiplierLT(v int) predicate.GroupAssignment

PriceMultiplierLT applies the LT predicate on the "price_multiplier" field.

func PriceMultiplierLTE

func PriceMultiplierLTE(v int) predicate.GroupAssignment

PriceMultiplierLTE applies the LTE predicate on the "price_multiplier" field.

func PriceMultiplierNEQ

func PriceMultiplierNEQ(v int) predicate.GroupAssignment

PriceMultiplierNEQ applies the NEQ predicate on the "price_multiplier" field.

func PriceMultiplierNotIn

func PriceMultiplierNotIn(vs ...int) predicate.GroupAssignment

PriceMultiplierNotIn applies the NotIn predicate on the "price_multiplier" field.

func PriceMultiplierNotNil

func PriceMultiplierNotNil() predicate.GroupAssignment

PriceMultiplierNotNil applies the NotNil predicate on the "price_multiplier" field.

func UserID

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

func UserIDEQ

func UserIDEQ(v int64) predicate.GroupAssignment

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

func UserIDIn

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

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

func UserIDNEQ

func UserIDNEQ(v int64) predicate.GroupAssignment

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

func UserIDNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the GroupAssignment queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByGroupID

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

ByGroupID orders the results by the group_id field.

func ByID

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

ByID orders the results by the id field.

func ByPriceMultiplier

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

ByPriceMultiplier orders the results by the price_multiplier field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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