Files
ent/entc/integration/migrate/entv2/user/user.go
Ariel Mashraki 624ecd2cc7 schema/field: add storage-key option
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/35

Reviewed By: alexsn

Differential Revision: D17394930

fbshipit-source-id: bc9d8cc6569ad457b93d47d26d143f2442f98df9
2019-09-16 04:39:17 -07:00

60 lines
2.0 KiB
Go

// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
// 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"
// FieldNewName holds the string denoting the new_name vertex property in the database.
FieldNewName = "renamed"
// FieldBlob holds the string denoting the blob vertex property in the database.
FieldBlob = "blob"
// 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,
FieldNewName,
FieldBlob,
}
var (
fields = schema.User{}.Fields()
// descBuffer is the schema descriptor for buffer field.
descBuffer = fields[3].Descriptor()
// DefaultBuffer holds the default value on creation 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 on creation for the title field.
DefaultTitle = descTitle.Default.(string)
)