zkt24/z2/backend/ent/schema/whitelist.go

25 lines
408 B
Go
Raw Normal View History

2024-04-25 11:51:47 +00:00
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),
}
}