entc: improve generated comments for edges and fields (#2632)

* replace default field comment with user comment if defined
* use comments defined on edges in generated entities
* add docs for comment method on edges and fields
* update integration to reflect above changes
This commit is contained in:
Will Bicks
2022-06-13 08:52:47 -04:00
committed by GitHub
parent 1572f1eb14
commit cd1afb235c
24 changed files with 88 additions and 31 deletions

View File

@@ -19,7 +19,6 @@ type User struct {
config `json:"-"`
// ID of the ent.
ID int `json:"id,omitempty"`
// Version holds the value of the "version" field.
// Unix time of when the latest update occurred
Version int64 `json:"version,omitempty"`
// Status holds the value of the "status" field.