Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func Created(v time.Time) predicate.Tenant
- func CreatedEQ(v time.Time) predicate.Tenant
- func CreatedGT(v time.Time) predicate.Tenant
- func CreatedGTE(v time.Time) predicate.Tenant
- func CreatedIn(vs ...time.Time) predicate.Tenant
- func CreatedIsNil() predicate.Tenant
- func CreatedLT(v time.Time) predicate.Tenant
- func CreatedLTE(v time.Time) predicate.Tenant
- func CreatedNEQ(v time.Time) predicate.Tenant
- func CreatedNotIn(vs ...time.Time) predicate.Tenant
- func CreatedNotNil() predicate.Tenant
- func Description(v string) predicate.Tenant
- func DescriptionContains(v string) predicate.Tenant
- func DescriptionContainsFold(v string) predicate.Tenant
- func DescriptionEQ(v string) predicate.Tenant
- func DescriptionEqualFold(v string) predicate.Tenant
- func DescriptionGT(v string) predicate.Tenant
- func DescriptionGTE(v string) predicate.Tenant
- func DescriptionHasPrefix(v string) predicate.Tenant
- func DescriptionHasSuffix(v string) predicate.Tenant
- func DescriptionIn(vs ...string) predicate.Tenant
- func DescriptionIsNil() predicate.Tenant
- func DescriptionLT(v string) predicate.Tenant
- func DescriptionLTE(v string) predicate.Tenant
- func DescriptionNEQ(v string) predicate.Tenant
- func DescriptionNotIn(vs ...string) predicate.Tenant
- func DescriptionNotNil() predicate.Tenant
- func HasMetadata() predicate.Tenant
- func HasMetadataWith(preds ...predicate.OrgMetadata) predicate.Tenant
- func HasRustdesk() predicate.Tenant
- func HasRustdeskWith(preds ...predicate.RustDesk) predicate.Tenant
- func HasSettings() predicate.Tenant
- func HasSettingsWith(preds ...predicate.Settings) predicate.Tenant
- func HasSites() predicate.Tenant
- func HasSitesWith(preds ...predicate.Site) predicate.Tenant
- func HasTags() predicate.Tenant
- func HasTagsWith(preds ...predicate.Tag) predicate.Tenant
- func ID(id int) predicate.Tenant
- func IDEQ(id int) predicate.Tenant
- func IDGT(id int) predicate.Tenant
- func IDGTE(id int) predicate.Tenant
- func IDIn(ids ...int) predicate.Tenant
- func IDLT(id int) predicate.Tenant
- func IDLTE(id int) predicate.Tenant
- func IDNEQ(id int) predicate.Tenant
- func IDNotIn(ids ...int) predicate.Tenant
- func IsDefault(v bool) predicate.Tenant
- func IsDefaultEQ(v bool) predicate.Tenant
- func IsDefaultIsNil() predicate.Tenant
- func IsDefaultNEQ(v bool) predicate.Tenant
- func IsDefaultNotNil() predicate.Tenant
- func Modified(v time.Time) predicate.Tenant
- func ModifiedEQ(v time.Time) predicate.Tenant
- func ModifiedGT(v time.Time) predicate.Tenant
- func ModifiedGTE(v time.Time) predicate.Tenant
- func ModifiedIn(vs ...time.Time) predicate.Tenant
- func ModifiedIsNil() predicate.Tenant
- func ModifiedLT(v time.Time) predicate.Tenant
- func ModifiedLTE(v time.Time) predicate.Tenant
- func ModifiedNEQ(v time.Time) predicate.Tenant
- func ModifiedNotIn(vs ...time.Time) predicate.Tenant
- func ModifiedNotNil() predicate.Tenant
- func Not(p predicate.Tenant) predicate.Tenant
- func Or(predicates ...predicate.Tenant) predicate.Tenant
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
- func ByModified(opts ...sql.OrderTermOption) OrderOption
- func ByRustdesk(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRustdeskCount(opts ...sql.OrderTermOption) OrderOption
- func BySettingsField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySitesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldDescription, FieldIsDefault, FieldCreated, FieldModified, }
Columns holds all SQL columns for tenant fields.
Functions ¶
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIsNil ¶
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
CreatedNotNil applies the NotNil predicate on the "created" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasMetadata ¶
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 ¶
HasRustdesk applies the HasEdge predicate on the "rustdesk" edge.
func HasRustdeskWith ¶
HasRustdeskWith applies the HasEdge predicate on the "rustdesk" edge with a given conditions (other predicates).
func HasSettings ¶
HasSettings applies the HasEdge predicate on the "settings" edge.
func HasSettingsWith ¶
HasSettingsWith applies the HasEdge predicate on the "settings" edge with a given conditions (other predicates).
func HasSitesWith ¶
HasSitesWith applies the HasEdge predicate on the "sites" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultIsNil ¶
IsDefaultIsNil applies the IsNil predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsDefaultNotNil ¶
IsDefaultNotNil applies the NotNil predicate on the "is_default" field.
func Modified ¶
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedIsNil ¶
ModifiedIsNil applies the IsNil predicate on the "modified" field.
func ModifiedLT ¶
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
ModifiedNotIn applies the NotIn predicate on the "modified" field.
func ModifiedNotNil ¶
ModifiedNotNil applies the NotNil predicate on the "modified" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.