Pull Proclamations & Categories from API and store them in the database

This commit is contained in:
NeilClack
2026-03-23 17:35:52 -05:00
parent 17c088cc2f
commit 8d23841391
8 changed files with 161 additions and 54 deletions
+6 -1
View File
@@ -27,7 +27,6 @@ type Log struct {
}
type Proclamation struct {
gorm.Model
ID string `gorm:"primaryKey"`
Name string
Content string
@@ -37,3 +36,9 @@ type Proclamation struct {
Available bool
Price float64
}
type ProclamationCategory struct {
ID int `gorm:"primaryKey"`
Name string
ParentId int
}