entc/gen: fix format for field comments (#511)

This commit is contained in:
Ariel Mashraki
2020-05-28 18:34:14 +03:00
committed by GitHub
parent bf566aa3ac
commit 25471666be
55 changed files with 401 additions and 211 deletions

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the city type in the database.
Label = "city"
// 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.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeStreets holds the string denoting the streets edge name in mutations.

View File

@@ -10,7 +10,8 @@ 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.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeCity holds the string denoting the city edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the group type in the database.
Label = "group"
// 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.
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.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
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.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeFriends holds the string denoting the friends edge name in mutations.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeFollowers holds the string denoting the followers edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the pet type in the database.
Label = "pet"
// 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.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeOwner holds the string denoting the owner edge name in mutations.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgePets holds the string denoting the pets edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the node type in the database.
Label = "node"
// FieldID holds the string denoting the id field in the database.
FieldID = "id" // FieldValue holds the string denoting the value vertex property in the database.
FieldID = "id"
// FieldValue holds the string denoting the value field in the database.
FieldValue = "value"
// EdgeParent holds the string denoting the parent edge name in mutations.

View File

@@ -10,9 +10,11 @@ const (
// Label holds the string label denoting the card type in the database.
Label = "card"
// FieldID holds the string denoting the id field in the database.
FieldID = "id" // FieldExpired holds the string denoting the expired vertex property in the database.
FieldExpired = "expired" // FieldNumber holds the string denoting the number vertex property in the database.
FieldNumber = "number"
FieldID = "id"
// FieldExpired holds the string denoting the expired field in the database.
FieldExpired = "expired"
// FieldNumber holds the string denoting the number field in the database.
FieldNumber = "number"
// EdgeOwner holds the string denoting the owner edge name in mutations.
EdgeOwner = "owner"

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeCard holds the string denoting the card edge name in mutations.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeSpouse holds the string denoting the spouse edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the node type in the database.
Label = "node"
// FieldID holds the string denoting the id field in the database.
FieldID = "id" // FieldValue holds the string denoting the value vertex property in the database.
FieldID = "id"
// FieldValue holds the string denoting the value field in the database.
FieldValue = "value"
// EdgePrev holds the string denoting the prev edge name in mutations.

View File

@@ -10,8 +10,10 @@ const (
// Label holds the string label denoting the car type in the database.
Label = "car"
// FieldID holds the string denoting the id field in the database.
FieldID = "id" // FieldModel holds the string denoting the model vertex property in the database.
FieldModel = "model" // FieldRegisteredAt holds the string denoting the registered_at vertex property in the database.
FieldID = "id"
// FieldModel holds the string denoting the model field in the database.
FieldModel = "model"
// FieldRegisteredAt holds the string denoting the registered_at field in the database.
FieldRegisteredAt = "registered_at"
// EdgeOwner holds the string denoting the owner edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the group type in the database.
Label = "group"
// 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.
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.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeCars holds the string denoting the cars edge name in mutations.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the group type in the database.
Label = "group"
// 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.
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.

View File

@@ -10,7 +10,8 @@ const (
// Label holds the string label denoting the pet type in the database.
Label = "pet"
// 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.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeFriends holds the string denoting the friends edge name in mutations.

View File

@@ -10,8 +10,10 @@ 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.
FieldID = "id"
// FieldAge holds the string denoting the age field in the database.
FieldAge = "age"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgePets holds the string denoting the pets edge name in mutations.