add new models, change migration files, prepare to add all new tables from models
This commit is contained in:
37
internal/foundry/temp_models/db/journal_page.go
Normal file
37
internal/foundry/temp_models/db/journal_page.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user