entc/gen: add edge-field api for schema and codegen (#1213)

This commit is contained in:
Ariel Mashraki
2021-03-07 22:51:17 +02:00
committed by GitHub
parent eeb5bc7141
commit c0fd7c1305
203 changed files with 13038 additions and 2736 deletions

View File

@@ -13,10 +13,8 @@ const (
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeUsers holds the string denoting the users edge name in mutations.
EdgeUsers = "users"
// Table holds the table name of the group in the database.
Table = "groups"
// UsersTable is the table the holds the users relation/edge. The primary key declared below.

View File

@@ -15,10 +15,8 @@ const (
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeGroups holds the string denoting the groups edge name in mutations.
EdgeGroups = "groups"
// Table holds the table name of the user in the database.
Table = "users"
// GroupsTable is the table the holds the groups relation/edge. The primary key declared below.