add new models, change migration files, prepare to add all new tables from models

This commit is contained in:
lbenedar
2026-04-15 17:01:30 +03:00
parent 5bb592ea8a
commit 69d3d38ab7
95 changed files with 5371 additions and 12 deletions

View File

@@ -0,0 +1,54 @@
package db
type CardDeck struct {
ID string
Name string
Type string
Description string
Img string
Folder string
Width int
Height int
Rotation int
Sort int
DisplayCount bool
Stats Stats
Ownership Ownership
Cards []Card
}
type Card struct {
ID string
Name string
Type string
Suit string
Description string
Origin string
Width int
Height int
Rotation int
Value int
Face int
Sort int
Drawn bool
Back Back
Stats Stats
Faces []Face
}
type Face struct {
ID uint
Name string
Img string
Text string
}
type Back struct {
ID uint
Name string
Text string
}