allowlistentry

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the allowlistentry type in the database.
	Label = "allowlist_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAddedBy holds the string denoting the added_by field in the database.
	FieldAddedBy = "added_by"
	// FieldNote holds the string denoting the note field in the database.
	FieldNote = "note"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeAddedByUser holds the string denoting the added_by_user edge name in mutations.
	EdgeAddedByUser = "added_by_user"
	// Table holds the table name of the allowlistentry in the database.
	Table = "allowlist"
	// AddedByUserTable is the table that holds the added_by_user relation/edge.
	AddedByUserTable = "allowlist"
	// AddedByUserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AddedByUserInverseTable = "users"
	// AddedByUserColumn is the table column denoting the added_by_user relation/edge.
	AddedByUserColumn = "added_by"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for allowlistentry fields.

Functions

func AddedBy

func AddedBy(v uuid.UUID) predicate.AllowlistEntry

AddedBy applies equality check predicate on the "added_by" field. It's identical to AddedByEQ.

func AddedByEQ

func AddedByEQ(v uuid.UUID) predicate.AllowlistEntry

AddedByEQ applies the EQ predicate on the "added_by" field.

func AddedByIn

func AddedByIn(vs ...uuid.UUID) predicate.AllowlistEntry

AddedByIn applies the In predicate on the "added_by" field.

func AddedByNEQ

func AddedByNEQ(v uuid.UUID) predicate.AllowlistEntry

AddedByNEQ applies the NEQ predicate on the "added_by" field.

func AddedByNotIn

func AddedByNotIn(vs ...uuid.UUID) predicate.AllowlistEntry

AddedByNotIn applies the NotIn predicate on the "added_by" field.

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.AllowlistEntry

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AllowlistEntry

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AllowlistEntry

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AllowlistEntry

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AllowlistEntry

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AllowlistEntry

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AllowlistEntry

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

func CreatedAtNotIn

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

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

func Email

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.AllowlistEntry

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.AllowlistEntry

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.AllowlistEntry

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.AllowlistEntry

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.AllowlistEntry

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.AllowlistEntry

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.AllowlistEntry

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.AllowlistEntry

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.AllowlistEntry

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.AllowlistEntry

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.AllowlistEntry

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.AllowlistEntry

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.AllowlistEntry

EmailNotIn applies the NotIn predicate on the "email" field.

func HasAddedByUser

func HasAddedByUser() predicate.AllowlistEntry

HasAddedByUser applies the HasEdge predicate on the "added_by_user" edge.

func HasAddedByUserWith

func HasAddedByUserWith(preds ...predicate.User) predicate.AllowlistEntry

HasAddedByUserWith applies the HasEdge predicate on the "added_by_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 ...uuid.UUID) predicate.AllowlistEntry

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 ...uuid.UUID) predicate.AllowlistEntry

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Note

Note applies equality check predicate on the "note" field. It's identical to NoteEQ.

func NoteContains

func NoteContains(v string) predicate.AllowlistEntry

NoteContains applies the Contains predicate on the "note" field.

func NoteContainsFold

func NoteContainsFold(v string) predicate.AllowlistEntry

NoteContainsFold applies the ContainsFold predicate on the "note" field.

func NoteEQ

NoteEQ applies the EQ predicate on the "note" field.

func NoteEqualFold

func NoteEqualFold(v string) predicate.AllowlistEntry

NoteEqualFold applies the EqualFold predicate on the "note" field.

func NoteGT

NoteGT applies the GT predicate on the "note" field.

func NoteGTE

func NoteGTE(v string) predicate.AllowlistEntry

NoteGTE applies the GTE predicate on the "note" field.

func NoteHasPrefix

func NoteHasPrefix(v string) predicate.AllowlistEntry

NoteHasPrefix applies the HasPrefix predicate on the "note" field.

func NoteHasSuffix

func NoteHasSuffix(v string) predicate.AllowlistEntry

NoteHasSuffix applies the HasSuffix predicate on the "note" field.

func NoteIn

func NoteIn(vs ...string) predicate.AllowlistEntry

NoteIn applies the In predicate on the "note" field.

func NoteIsNil

func NoteIsNil() predicate.AllowlistEntry

NoteIsNil applies the IsNil predicate on the "note" field.

func NoteLT

NoteLT applies the LT predicate on the "note" field.

func NoteLTE

func NoteLTE(v string) predicate.AllowlistEntry

NoteLTE applies the LTE predicate on the "note" field.

func NoteNEQ

func NoteNEQ(v string) predicate.AllowlistEntry

NoteNEQ applies the NEQ predicate on the "note" field.

func NoteNotIn

func NoteNotIn(vs ...string) predicate.AllowlistEntry

NoteNotIn applies the NotIn predicate on the "note" field.

func NoteNotNil

func NoteNotNil() predicate.AllowlistEntry

NoteNotNil applies the NotNil predicate on the "note" field.

func Or

Or groups predicates with the OR operator between them.

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

func ByAddedBy

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

ByAddedBy orders the results by the added_by field.

func ByAddedByUserField

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

ByAddedByUserField orders the results by added_by_user field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByNote

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

ByNote orders the results by the note field.

Jump to

Keyboard shortcuts

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