Files
seanime/internal/platform/local_platform_models.go
5rahim 25242bf54b more refactoring
fix: runtime panic when manually syncing progress offline
2024-07-15 14:16:42 -04:00

17 lines
431 B
Go

package platform
import "time"
type BaseModel struct {
ID uint `gorm:"primarykey" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type LocalMedia struct {
BaseModel
ID int `gorm:"column:id" json:"id"` // Media ID
Type string `gorm:"column:type" json:"type"` // "anime" or "manga"
Value []byte `gorm:"column:value" json:"value"` // Marshalled struct
}