mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
dialect/entsql: add Size to Annotation (#947)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user