schema/mixin: add support for mixed-in annotations

This commit is contained in:
Ariel Mashraki
2020-10-11 21:06:10 +03:00
committed by Ariel Mashraki
parent 85c4999472
commit c8a6527612
5 changed files with 38 additions and 8 deletions

View File

@@ -36,6 +36,9 @@ func (Schema) Hooks() []ent.Hook { return nil }
// Policy of the mixin.
func (Schema) Policy() ent.Policy { return nil }
// Annotations of the mixin.
func (Schema) Annotations() []schema.Annotation { return nil }
// time mixin must implement `Mixin` interface.
var _ ent.Mixin = (*Schema)(nil)