adding validated services? patching forcad_local.py
This commit is contained in:
27
OmCTF-2025/services/block_game/backend/schema/setting.go
Normal file
27
OmCTF-2025/services/block_game/backend/schema/setting.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// Setting holds the schema definition for the Setting entity.
|
||||
type Setting struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
// Fields of the Setting.
|
||||
func (Setting) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.String("key").
|
||||
Unique().
|
||||
NotEmpty(),
|
||||
field.String("value").
|
||||
NotEmpty(),
|
||||
}
|
||||
}
|
||||
|
||||
// Edges of the Setting.
|
||||
func (Setting) Edges() []ent.Edge {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user