mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
schema/mixin: add support for mixed-in annotations
This commit is contained in:
committed by
Ariel Mashraki
parent
85c4999472
commit
c8a6527612
3
ent.go
3
ent.go
@@ -153,6 +153,9 @@ type (
|
||||
// Policy returns a privacy policy to add to the schema.
|
||||
// Note that mixin policy are executed before schema policy.
|
||||
Policy() Policy
|
||||
// Annotations returns a list of schema annotations to add
|
||||
// to the schema annotations.
|
||||
Annotations() []schema.Annotation
|
||||
}
|
||||
|
||||
// The Policy type defines the write privacy policy of an entity.
|
||||
|
||||
Reference in New Issue
Block a user