44 lines
1011 B
Go
44 lines
1011 B
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package setup
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the setup type in the database.
|
|
Label = "setup"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldSetUpAt holds the string denoting the set_up_at field in the database.
|
|
FieldSetUpAt = "set_up_at"
|
|
// Table holds the table name of the setup in the database.
|
|
Table = "setups"
|
|
)
|
|
|
|
// Columns holds all SQL columns for setup fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldSetUpAt,
|
|
}
|
|
|
|
// 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 (
|
|
// DefaultSetUpAt holds the default value on creation for the "set_up_at" field.
|
|
DefaultSetUpAt func() time.Time
|
|
// DefaultID holds the default value on creation for the "id" field.
|
|
DefaultID func() uuid.UUID
|
|
)
|