Files
ent/entc/integration/migrate/entv2/user/user.go
Ariel Mashraki c203f043cf ent: add blob tyoe
Reviewed By: idoshveki

Differential Revision: D16600425

fbshipit-source-id: 04c6fe39f9b3b628a1e79eb3063188f582d9e504
2019-08-01 07:45:05 -07:00

41 lines
1.1 KiB
Go

// Code generated (@generated) by entc, DO NOT EDIT.
package user
import (
"fbc/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"
// 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,
}
var (
fields = schema.User{}.Fields()
// DefaultBuffer holds the default value for the buffer field.
DefaultBuffer = fields[3].Value().([]byte)
)