tennant

package
v0.0.0-...-f8f0079 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tennant type in the database.
	Label = "tennant"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldExternalId holds the string denoting the externalid field in the database.
	FieldExternalId = "external_id"
	// FieldCloud holds the string denoting the cloud field in the database.
	FieldCloud = "cloud"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the tennant in the database.
	Table = "tennants"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "tennants"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account_id"
)

Variables

View Source
var (
	// 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 tennant fields.

Functions

func AccountID

func AccountID(v uuid.UUID) predicate.Tennant

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDEQ

func AccountIDEQ(v uuid.UUID) predicate.Tennant

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...uuid.UUID) predicate.Tennant

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v uuid.UUID) predicate.Tennant

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...uuid.UUID) predicate.Tennant

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func And

func And(predicates ...predicate.Tennant) predicate.Tennant

And groups predicates with the AND operator between them.

func Cloud

func Cloud(v string) predicate.Tennant

Cloud applies equality check predicate on the "cloud" field. It's identical to CloudEQ.

func CloudContains

func CloudContains(v string) predicate.Tennant

CloudContains applies the Contains predicate on the "cloud" field.

func CloudContainsFold

func CloudContainsFold(v string) predicate.Tennant

CloudContainsFold applies the ContainsFold predicate on the "cloud" field.

func CloudEQ

func CloudEQ(v string) predicate.Tennant

CloudEQ applies the EQ predicate on the "cloud" field.

func CloudEqualFold

func CloudEqualFold(v string) predicate.Tennant

CloudEqualFold applies the EqualFold predicate on the "cloud" field.

func CloudGT

func CloudGT(v string) predicate.Tennant

CloudGT applies the GT predicate on the "cloud" field.

func CloudGTE

func CloudGTE(v string) predicate.Tennant

CloudGTE applies the GTE predicate on the "cloud" field.

func CloudHasPrefix

func CloudHasPrefix(v string) predicate.Tennant

CloudHasPrefix applies the HasPrefix predicate on the "cloud" field.

func CloudHasSuffix

func CloudHasSuffix(v string) predicate.Tennant

CloudHasSuffix applies the HasSuffix predicate on the "cloud" field.

func CloudIn

func CloudIn(vs ...string) predicate.Tennant

CloudIn applies the In predicate on the "cloud" field.

func CloudLT

func CloudLT(v string) predicate.Tennant

CloudLT applies the LT predicate on the "cloud" field.

func CloudLTE

func CloudLTE(v string) predicate.Tennant

CloudLTE applies the LTE predicate on the "cloud" field.

func CloudNEQ

func CloudNEQ(v string) predicate.Tennant

CloudNEQ applies the NEQ predicate on the "cloud" field.

func CloudNotIn

func CloudNotIn(vs ...string) predicate.Tennant

CloudNotIn applies the NotIn predicate on the "cloud" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Tennant

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Tennant

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Tennant

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Tennant

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Tennant

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Tennant

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Tennant

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

func CreatedAtNotIn

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

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

func ExternalId

func ExternalId(v string) predicate.Tennant

ExternalId applies equality check predicate on the "externalId" field. It's identical to ExternalIdEQ.

func ExternalIdContains

func ExternalIdContains(v string) predicate.Tennant

ExternalIdContains applies the Contains predicate on the "externalId" field.

func ExternalIdContainsFold

func ExternalIdContainsFold(v string) predicate.Tennant

ExternalIdContainsFold applies the ContainsFold predicate on the "externalId" field.

func ExternalIdEQ

func ExternalIdEQ(v string) predicate.Tennant

ExternalIdEQ applies the EQ predicate on the "externalId" field.

func ExternalIdEqualFold

func ExternalIdEqualFold(v string) predicate.Tennant

ExternalIdEqualFold applies the EqualFold predicate on the "externalId" field.

func ExternalIdGT

func ExternalIdGT(v string) predicate.Tennant

ExternalIdGT applies the GT predicate on the "externalId" field.

func ExternalIdGTE

func ExternalIdGTE(v string) predicate.Tennant

ExternalIdGTE applies the GTE predicate on the "externalId" field.

func ExternalIdHasPrefix

func ExternalIdHasPrefix(v string) predicate.Tennant

ExternalIdHasPrefix applies the HasPrefix predicate on the "externalId" field.

func ExternalIdHasSuffix

func ExternalIdHasSuffix(v string) predicate.Tennant

ExternalIdHasSuffix applies the HasSuffix predicate on the "externalId" field.

func ExternalIdIn

func ExternalIdIn(vs ...string) predicate.Tennant

ExternalIdIn applies the In predicate on the "externalId" field.

func ExternalIdLT

func ExternalIdLT(v string) predicate.Tennant

ExternalIdLT applies the LT predicate on the "externalId" field.

func ExternalIdLTE

func ExternalIdLTE(v string) predicate.Tennant

ExternalIdLTE applies the LTE predicate on the "externalId" field.

func ExternalIdNEQ

func ExternalIdNEQ(v string) predicate.Tennant

ExternalIdNEQ applies the NEQ predicate on the "externalId" field.

func ExternalIdNotIn

func ExternalIdNotIn(vs ...string) predicate.Tennant

ExternalIdNotIn applies the NotIn predicate on the "externalId" field.

func HasAccount

func HasAccount() predicate.Tennant

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Tennant

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

func ID

func ID(id uuid.UUID) predicate.Tennant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Tennant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Tennant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Tennant

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Tennant

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Tennant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Tennant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Tennant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Tennant

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tennant) predicate.Tennant

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

This section is empty.

Jump to

Keyboard shortcuts

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