tenant

package
v0.0.0-...-481d7d6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tenant type in the database.
	Label = "tenant"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// EdgeSites holds the string denoting the sites edge name in mutations.
	EdgeSites = "sites"
	// EdgeSettings holds the string denoting the settings edge name in mutations.
	EdgeSettings = "settings"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeRustdesk holds the string denoting the rustdesk edge name in mutations.
	EdgeRustdesk = "rustdesk"
	// Table holds the table name of the tenant in the database.
	Table = "tenants"
	// SitesTable is the table that holds the sites relation/edge.
	SitesTable = "sites"
	// SitesInverseTable is the table name for the Site entity.
	// It exists in this package in order to avoid circular dependency with the "site" package.
	SitesInverseTable = "sites"
	// SitesColumn is the table column denoting the sites relation/edge.
	SitesColumn = "tenant_sites"
	// SettingsTable is the table that holds the settings relation/edge.
	SettingsTable = "settings"
	// SettingsInverseTable is the table name for the Settings entity.
	// It exists in this package in order to avoid circular dependency with the "settings" package.
	SettingsInverseTable = "settings"
	// SettingsColumn is the table column denoting the settings relation/edge.
	SettingsColumn = "tenant_settings"
	// TagsTable is the table that holds the tags relation/edge.
	TagsTable = "tags"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
	// TagsColumn is the table column denoting the tags relation/edge.
	TagsColumn = "tenant_tags"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "org_metadata"
	// MetadataInverseTable is the table name for the OrgMetadata entity.
	// It exists in this package in order to avoid circular dependency with the "orgmetadata" package.
	MetadataInverseTable = "org_metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "tenant_metadata"
	// RustdeskTable is the table that holds the rustdesk relation/edge.
	RustdeskTable = "rust_desks"
	// RustdeskInverseTable is the table name for the RustDesk entity.
	// It exists in this package in order to avoid circular dependency with the "rustdesk" package.
	RustdeskInverseTable = "rust_desks"
	// RustdeskColumn is the table column denoting the rustdesk relation/edge.
	RustdeskColumn = "tenant_rustdesk"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

Columns holds all SQL columns for tenant fields.

Functions

func And

func And(predicates ...predicate.Tenant) predicate.Tenant

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Tenant

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Tenant

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Tenant

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Tenant

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Tenant

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.Tenant

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Tenant

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Tenant

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Tenant

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Tenant

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.Tenant

CreatedNotNil applies the NotNil predicate on the "created" field.

func Description

func Description(v string) predicate.Tenant

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

func DescriptionContains

func DescriptionContains(v string) predicate.Tenant

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Tenant

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Tenant

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Tenant

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

func DescriptionGT

func DescriptionGT(v string) predicate.Tenant

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Tenant

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Tenant

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Tenant

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Tenant

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Tenant

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Tenant

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Tenant

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Tenant

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasMetadata

func HasMetadata() predicate.Tenant

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.OrgMetadata) predicate.Tenant

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

func HasRustdesk

func HasRustdesk() predicate.Tenant

HasRustdesk applies the HasEdge predicate on the "rustdesk" edge.

func HasRustdeskWith

func HasRustdeskWith(preds ...predicate.RustDesk) predicate.Tenant

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

func HasSettings

func HasSettings() predicate.Tenant

HasSettings applies the HasEdge predicate on the "settings" edge.

func HasSettingsWith

func HasSettingsWith(preds ...predicate.Settings) predicate.Tenant

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

func HasSites

func HasSites() predicate.Tenant

HasSites applies the HasEdge predicate on the "sites" edge.

func HasSitesWith

func HasSitesWith(preds ...predicate.Site) predicate.Tenant

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

func HasTags

func HasTags() predicate.Tenant

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Tenant

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

func ID

func ID(id int) predicate.Tenant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tenant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tenant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tenant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tenant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tenant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tenant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v bool) predicate.Tenant

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.Tenant

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultIsNil

func IsDefaultIsNil() predicate.Tenant

IsDefaultIsNil applies the IsNil predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.Tenant

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsDefaultNotNil

func IsDefaultNotNil() predicate.Tenant

IsDefaultNotNil applies the NotNil predicate on the "is_default" field.

func Modified

func Modified(v time.Time) predicate.Tenant

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Tenant

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Tenant

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Tenant

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.Tenant

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedIsNil

func ModifiedIsNil() predicate.Tenant

ModifiedIsNil applies the IsNil predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Tenant

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Tenant

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Tenant

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.Tenant

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func ModifiedNotNil

func ModifiedNotNil() predicate.Tenant

ModifiedNotNil applies the NotNil predicate on the "modified" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tenant) predicate.Tenant

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

func ByCreated

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

ByCreated orders the results by the created field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByMetadata

func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMetadata orders the results by metadata terms.

func ByMetadataCount

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

ByMetadataCount orders the results by metadata count.

func ByModified

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

ByModified orders the results by the modified field.

func ByRustdesk

func ByRustdesk(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRustdesk orders the results by rustdesk terms.

func ByRustdeskCount

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

ByRustdeskCount orders the results by rustdesk count.

func BySettingsField

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

BySettingsField orders the results by settings field.

func BySites

func BySites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySites orders the results by sites terms.

func BySitesCount

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

BySitesCount orders the results by sites count.

func ByTags

func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTags orders the results by tags terms.

func ByTagsCount

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

ByTagsCount orders the results by tags count.

Jump to

Keyboard shortcuts

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