first draft version

This commit is contained in:
Simon Ding
2024-06-22 17:15:24 +08:00
parent be0dc4a466
commit ab8e653c5b
63 changed files with 15137 additions and 17 deletions

24
ent/schema/settings.go Normal file
View File

@@ -0,0 +1,24 @@
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
}