initial commit

This commit is contained in:
maurice fletgen
2022-09-08 09:18:04 +02:00
commit 447b2fb51d
163 changed files with 47569 additions and 0 deletions

28
ent/schema/punishments.go Normal file
View File

@@ -0,0 +1,28 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Punishments holds the schema definition for the Punishments entity.
type Punishments struct {
ent.Schema
}
// Fields of the Punishments.
func (Punishments) Fields() []ent.Field {
return []ent.Field{
field.Int("id").Unique(),
field.String("serverid"),
field.String("warnamount"),
field.String("actiontype"),
field.String("duration"),
field.String("reason"),
}
}
// Edges of the Punishments.
func (Punishments) Edges() []ent.Edge {
return nil
}