mirror of
https://github.com/ent/ent.git
synced 2026-05-03 08:00:58 +03:00
doc: add missing methods to Mixin interface (#865)
This commit is contained in:
@@ -18,6 +18,12 @@ type Mixin interface {
|
||||
// Hooks returns a slice of hooks to add to the schema.
|
||||
// Note that mixin hooks are executed before schema hooks.
|
||||
Hooks() []Hook
|
||||
// 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
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user