doc: add entsql.WithComments annotation (#3192)

This commit is contained in:
Ariel Mashraki
2022-12-26 16:56:49 +02:00
committed by GitHub
parent 136807549d
commit c868f4a174
2 changed files with 48 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ func (Media) Indexes() []ent.Index {
}
}
// Annotations of the Media.
func (Media) Annotations() []schema.Annotation {
return []schema.Annotation{
entsql.WithComments(true),