indiescrobble/models/media.go

16 lines
250 B
Go
Raw Normal View History

2022-02-19 15:47:25 +00:00
package models
import (
"database/sql"
"gorm.io/gorm"
)
type MediaItem struct{
gorm.Model
MediaID string `gorm:"not null uniqueIndex"`
ThumbnailURL sql.NullString
DisplayName sql.NullString
CanonicalURL sql.NullString
Data sql.NullString
}