Rework backing storage system
Some checks are pending
/ test (push) Waiting to run

Step one: Copy the struct definitions over into a new, dedicated
submodule
Step two: Make a generator script
Step three: Define helper functions for various queries
This commit is contained in:
Melody Becker 2025-03-20 21:39:10 +01:00
parent 0639cde4f2
commit 714f528641
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
27 changed files with 983 additions and 0 deletions

View file

@ -0,0 +1,12 @@
package models
import "gorm.io/gorm"
type Emote struct {
gorm.Model
// Metadata MediaMetadata // `gorm:"foreignKey:MetadataId"`
MetadataId string
Name string
// Server RemoteServer // `gorm:"foreignKey:ServerId;references:ID"`
ServerId uint
}