zkt24/z2/backend/ent/schema/whitelist.go
2024-04-25 13:51:47 +02:00

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),
}
}