Skip to content

Commit b24cfed

Browse files
committed
chore: add schema comment into basic tpl
1 parent 6787f6a commit b24cfed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extra/ent/schema/tpl/basic.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func ({{.ModelName}}) Indexes() []ent.Index {
3535
func ({{.ModelName}}) Annotations() []schema.Annotation {
3636
return []schema.Annotation{
3737
entsql.WithComments(true),
38+
schema.Comment("{{.ModelName}}"),
3839
entsql.Annotation{Table: "{{.ModelNameLowercase}}"},
3940
}
4041
}

0 commit comments

Comments
 (0)