mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
schema/mixin: add support for mixed-in annotations
This commit is contained in:
committed by
Ariel Mashraki
parent
85c4999472
commit
c8a6527612
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user