mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
Summary: wip Reviewed By: alexsn Differential Revision: D17052576 fbshipit-source-id: 165faca2ff02c22bb76f164d81d406ce46ab04c4
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
// Code generated (@generated) by entc, DO NOT EDIT.
|
|
|
|
package user
|
|
|
|
import (
|
|
"github.com/facebookincubator/ent/entc/integration/migrate/entv2/schema"
|
|
)
|
|
|
|
const (
|
|
// Label holds the string label denoting the user type in the database.
|
|
Label = "user"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldAge holds the string denoting the age vertex property in the database.
|
|
FieldAge = "age"
|
|
// FieldName holds the string denoting the name vertex property in the database.
|
|
FieldName = "name"
|
|
// FieldPhone holds the string denoting the phone vertex property in the database.
|
|
FieldPhone = "phone"
|
|
// FieldBuffer holds the string denoting the buffer vertex property in the database.
|
|
FieldBuffer = "buffer"
|
|
// FieldTitle holds the string denoting the title vertex property in the database.
|
|
FieldTitle = "title"
|
|
|
|
// Table holds the table name of the user in the database.
|
|
Table = "users"
|
|
)
|
|
|
|
// Columns holds all SQL columns are user fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldAge,
|
|
FieldName,
|
|
FieldPhone,
|
|
FieldBuffer,
|
|
FieldTitle,
|
|
}
|
|
|
|
var (
|
|
fields = schema.User{}.Fields()
|
|
// descBuffer is the schema descriptor for buffer field.
|
|
descBuffer = fields[3].Descriptor()
|
|
// DefaultBuffer holds the default value for the buffer field.
|
|
DefaultBuffer = descBuffer.Default.([]byte)
|
|
// descTitle is the schema descriptor for title field.
|
|
descTitle = fields[4].Descriptor()
|
|
// DefaultTitle holds the default value for the title field.
|
|
DefaultTitle = descTitle.Default.(string)
|
|
)
|