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,37 @@
package db
type JournalPage struct {
ID string
Name string
Type string
Src string
Sort int
Text PageText
Title PageTitle
Video PageVideo
Stats Stats
Ownership []OwnershipString
}
type PageText struct {
ID uint
Content string
Markdown string
Format int
}
type PageTitle struct {
ID uint
Show bool
Level int
}
type PageVideo struct {
ID uint
Controls bool
Volume float64
}