Add a metadata system

This commit is contained in:
Tom Wiesing 2022-09-20 13:11:24 +02:00
parent 07409a01be
commit 8b3218ad00
No known key found for this signature in database
16 changed files with 365 additions and 61 deletions

View file

@ -0,0 +1,13 @@
package models
// MetadataTable is the name of the table the 'Metadatum' model is stored in.
const MetadataTable = "metadatum"
// Metadatum represents
type Metadatum struct {
Pk uint `gorm:"column:pk;primaryKey"`
Key string `gorm:"column:key;not null"` // key for the value, see the keys below
Slug string `gorm:"column:slug"` // optional slug of instance
Value []byte `gorm:"column:value"` // serialized json value of the data
}