25 lines
408 B
Go
25 lines
408 B
Go
|
package schema
|
||
|
|
||
|
import (
|
||
|
"entgo.io/ent"
|
||
|
"entgo.io/ent/schema/edge"
|
||
|
)
|
||
|
|
||
|
// Key holds the schema definition for the Key entity.
|
||
|
type WhiteList struct {
|
||
|
ent.Schema
|
||
|
}
|
||
|
|
||
|
// Fields of the Key.
|
||
|
func (WhiteList) Fields() []ent.Field {
|
||
|
return []ent.Field{}
|
||
|
}
|
||
|
|
||
|
// Edges of the Key.
|
||
|
func (WhiteList) Edges() []ent.Edge {
|
||
|
return []ent.Edge{
|
||
|
edge.To("Sponsor", Validators.Type),
|
||
|
edge.To("Account", Key.Type),
|
||
|
}
|
||
|
}
|