ent schema post generation
This commit is contained in:
113
ent/domain/domain.go
Normal file
113
ent/domain/domain.go
Normal file
@ -0,0 +1,113 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
|
||||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the domain type in the database.
|
||||
Label = "domain"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// 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"
|
||||
// FieldDomain holds the string denoting the domain field in the database.
|
||||
FieldDomain = "domain"
|
||||
// FieldDescription holds the string denoting the description field in the database.
|
||||
FieldDescription = "description"
|
||||
// FieldMaxAliases holds the string denoting the max_aliases field in the database.
|
||||
FieldMaxAliases = "max_aliases"
|
||||
// FieldMaxMailboxes holds the string denoting the max_mailboxes field in the database.
|
||||
FieldMaxMailboxes = "max_mailboxes"
|
||||
// FieldMaxQuota holds the string denoting the max_quota field in the database.
|
||||
FieldMaxQuota = "max_quota"
|
||||
// FieldQuota holds the string denoting the quota field in the database.
|
||||
FieldQuota = "quota"
|
||||
// FieldTransport holds the string denoting the transport field in the database.
|
||||
FieldTransport = "transport"
|
||||
// FieldBackupMx holds the string denoting the backup_mx field in the database.
|
||||
FieldBackupMx = "backup_mx"
|
||||
// FieldActive holds the string denoting the active field in the database.
|
||||
FieldActive = "active"
|
||||
// EdgeMailboxes holds the string denoting the mailboxes edge name in mutations.
|
||||
EdgeMailboxes = "mailboxes"
|
||||
// EdgeAliases holds the string denoting the aliases edge name in mutations.
|
||||
EdgeAliases = "aliases"
|
||||
// EdgeLogs holds the string denoting the logs edge name in mutations.
|
||||
EdgeLogs = "logs"
|
||||
// EdgeAccounts holds the string denoting the accounts edge name in mutations.
|
||||
EdgeAccounts = "accounts"
|
||||
// Table holds the table name of the domain in the database.
|
||||
Table = "domains"
|
||||
// MailboxesTable is the table that holds the mailboxes relation/edge.
|
||||
MailboxesTable = "mailboxes"
|
||||
// MailboxesInverseTable is the table name for the Mailbox entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "mailbox" package.
|
||||
MailboxesInverseTable = "mailboxes"
|
||||
// MailboxesColumn is the table column denoting the mailboxes relation/edge.
|
||||
MailboxesColumn = "domain_id"
|
||||
// AliasesTable is the table that holds the aliases relation/edge.
|
||||
AliasesTable = "alias"
|
||||
// AliasesInverseTable is the table name for the Alias entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "alias" package.
|
||||
AliasesInverseTable = "alias"
|
||||
// AliasesColumn is the table column denoting the aliases relation/edge.
|
||||
AliasesColumn = "domain_id"
|
||||
// LogsTable is the table that holds the logs relation/edge.
|
||||
LogsTable = "logentries"
|
||||
// LogsInverseTable is the table name for the Logentry entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "logentry" package.
|
||||
LogsInverseTable = "logentries"
|
||||
// LogsColumn is the table column denoting the logs relation/edge.
|
||||
LogsColumn = "domain_id"
|
||||
// AccountsTable is the table that holds the accounts relation/edge. The primary key declared below.
|
||||
AccountsTable = "account_domains"
|
||||
// AccountsInverseTable is the table name for the Account entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "account" package.
|
||||
AccountsInverseTable = "accounts"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for domain fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldCreated,
|
||||
FieldModified,
|
||||
FieldDomain,
|
||||
FieldDescription,
|
||||
FieldMaxAliases,
|
||||
FieldMaxMailboxes,
|
||||
FieldMaxQuota,
|
||||
FieldQuota,
|
||||
FieldTransport,
|
||||
FieldBackupMx,
|
||||
FieldActive,
|
||||
}
|
||||
|
||||
var (
|
||||
// AccountsPrimaryKey and AccountsColumn2 are the table columns denoting the
|
||||
// primary key for the accounts relation (M2M).
|
||||
AccountsPrimaryKey = []string{"account_id", "domain_id"}
|
||||
)
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
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
|
||||
)
|
1160
ent/domain/where.go
Normal file
1160
ent/domain/where.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user