dialect/entsql: add Size to Annotation (#947)

This commit is contained in:
Harold.Luo
2020-11-14 02:44:42 +08:00
committed by GitHub
parent 3038bb5ab1
commit b71fc2714b
5 changed files with 23 additions and 3 deletions

View File

@@ -42,6 +42,14 @@ type Annotation struct {
// }
//
Options string `json:"options,omitempty"`
// Size define the column size in the generated schema. for example:
//
// entsql.Annotation{
// Size: 128,
// }
//
Size int64 `json:"size,omitempty"`
}
// Name describes the annotation name.