Files
ent/examples/edgeindex/ent/street/street.go
Ariel Mashraki e00a7d96a4 ent/doc: add indexes doc and example
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1380

Reviewed By: alexsn

Differential Revision: D17075317

fbshipit-source-id: 021cb0bde3849af5a5d842b715a7b7dbd861c54f
2019-08-27 12:15:14 -07:00

33 lines
1.1 KiB
Go

// Copyright 2019-present Facebook Inc. 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 street
const (
// Label holds the string label denoting the street type in the database.
Label = "street"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldName holds the string denoting the name vertex property in the database.
FieldName = "name"
// Table holds the table name of the street in the database.
Table = "streets"
// CityTable is the table the holds the city relation/edge.
CityTable = "streets"
// CityInverseTable is the table name for the City entity.
// It exists in this package in order to avoid circular dependency with the "city" package.
CityInverseTable = "cities"
// CityColumn is the table column denoting the city relation/edge.
CityColumn = "city_id"
)
// Columns holds all SQL columns are street fields.
var Columns = []string{
FieldID,
FieldName,
}