dep upgrade, regenerate
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -111,3 +114,150 @@ var (
|
||||
// UpdateDefaultModified holds the default value on update for the "modified" field.
|
||||
UpdateDefaultModified func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Domain queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreated orders the results by the created field.
|
||||
func ByCreated(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreated, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByModified orders the results by the modified field.
|
||||
func ByModified(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldModified, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDomain orders the results by the domain field.
|
||||
func ByDomain(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDomain, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDescription orders the results by the description field.
|
||||
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDescription, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaxAliases orders the results by the max_aliases field.
|
||||
func ByMaxAliases(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaxAliases, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaxMailboxes orders the results by the max_mailboxes field.
|
||||
func ByMaxMailboxes(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaxMailboxes, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaxQuota orders the results by the max_quota field.
|
||||
func ByMaxQuota(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaxQuota, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQuota orders the results by the quota field.
|
||||
func ByQuota(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQuota, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTransport orders the results by the transport field.
|
||||
func ByTransport(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTransport, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBackupMx orders the results by the backup_mx field.
|
||||
func ByBackupMx(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBackupMx, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByActive orders the results by the active field.
|
||||
func ByActive(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldActive, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMailboxesCount orders the results by mailboxes count.
|
||||
func ByMailboxesCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newMailboxesStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByMailboxes orders the results by mailboxes terms.
|
||||
func ByMailboxes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newMailboxesStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByAliasesCount orders the results by aliases count.
|
||||
func ByAliasesCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newAliasesStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByAliases orders the results by aliases terms.
|
||||
func ByAliases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newAliasesStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByLogsCount orders the results by logs count.
|
||||
func ByLogsCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newLogsStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByLogs orders the results by logs terms.
|
||||
func ByLogs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newLogsStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByAccountsCount orders the results by accounts count.
|
||||
func ByAccountsCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborsCount(s, newAccountsStep(), opts...)
|
||||
}
|
||||
}
|
||||
|
||||
// ByAccounts orders the results by accounts terms.
|
||||
func ByAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newAccountsStep(), append([]sql.OrderTerm{term}, terms...)...)
|
||||
}
|
||||
}
|
||||
func newMailboxesStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(MailboxesInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, MailboxesTable, MailboxesColumn),
|
||||
)
|
||||
}
|
||||
func newAliasesStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(AliasesInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, AliasesTable, AliasesColumn),
|
||||
)
|
||||
}
|
||||
func newLogsStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(LogsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, LogsTable, LogsColumn),
|
||||
)
|
||||
}
|
||||
func newAccountsStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(AccountsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2M, true, AccountsTable, AccountsPrimaryKey...),
|
||||
)
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user