usergroup

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usergroup type in the database.
	Label = "user_group"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldJoinedAt holds the string denoting the joined_at field in the database.
	FieldJoinedAt = "joined_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldGroupID holds the string denoting the group_id field in the database.
	FieldGroupID = "group_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// Table holds the table name of the usergroup in the database.
	Table = "user_groups"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_groups"
	// 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"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "user_groups"
	// 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"
)

Variables

Columns holds all SQL columns for usergroup fields.

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

Functions

func And

func And(predicates ...predicate.UserGroup) predicate.UserGroup

And groups predicates with the AND operator between them.

func GroupID

func GroupID(v int) predicate.UserGroup

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

func GroupIDEQ

func GroupIDEQ(v int) predicate.UserGroup

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

func GroupIDIn

func GroupIDIn(vs ...int) predicate.UserGroup

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

func GroupIDNEQ

func GroupIDNEQ(v int) predicate.UserGroup

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

func GroupIDNotIn

func GroupIDNotIn(vs ...int) predicate.UserGroup

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

func HasGroup

func HasGroup() predicate.UserGroup

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

func HasGroupWith

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

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

func HasUser

func HasUser() predicate.UserGroup

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

func HasUserWith

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

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

func ID

func ID(id int) predicate.UserGroup

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserGroup

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserGroup

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserGroup

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserGroup

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserGroup

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserGroup

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func JoinedAt

func JoinedAt(v time.Time) predicate.UserGroup

JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.

func JoinedAtEQ

func JoinedAtEQ(v time.Time) predicate.UserGroup

JoinedAtEQ applies the EQ predicate on the "joined_at" field.

func JoinedAtGT

func JoinedAtGT(v time.Time) predicate.UserGroup

JoinedAtGT applies the GT predicate on the "joined_at" field.

func JoinedAtGTE

func JoinedAtGTE(v time.Time) predicate.UserGroup

JoinedAtGTE applies the GTE predicate on the "joined_at" field.

func JoinedAtIn

func JoinedAtIn(vs ...time.Time) predicate.UserGroup

JoinedAtIn applies the In predicate on the "joined_at" field.

func JoinedAtLT

func JoinedAtLT(v time.Time) predicate.UserGroup

JoinedAtLT applies the LT predicate on the "joined_at" field.

func JoinedAtLTE

func JoinedAtLTE(v time.Time) predicate.UserGroup

JoinedAtLTE applies the LTE predicate on the "joined_at" field.

func JoinedAtNEQ

func JoinedAtNEQ(v time.Time) predicate.UserGroup

JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.

func JoinedAtNotIn

func JoinedAtNotIn(vs ...time.Time) predicate.UserGroup

JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserGroup) predicate.UserGroup

Or groups predicates with the OR operator between them.

func UserID

func UserID(v int) predicate.UserGroup

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

func UserIDEQ

func UserIDEQ(v int) predicate.UserGroup

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

func UserIDIn

func UserIDIn(vs ...int) predicate.UserGroup

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

func UserIDNEQ

func UserIDNEQ(v int) predicate.UserGroup

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

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.UserGroup

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