Pull Proclamations & Categories from API and store them in the database
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user