Files
polaris/ent/schema/settings.go
2024-06-22 17:15:24 +08:00

25 lines
394 B
Go

package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Settings holds the schema definition for the Settings entity.
type Settings struct {
ent.Schema
}
// Fields of the Settings.
func (Settings) Fields() []ent.Field {
return []ent.Field{
field.String("key"),
field.String("value"),
}
}
// Edges of the Settings.
func (Settings) Edges() []ent.Edge {
return nil
}