Move Video to media package

This commit is contained in:
Carl Pearson
2024-09-26 05:50:16 -06:00
parent 00d4a12014
commit 88160b2301
5 changed files with 40 additions and 28 deletions

23
media/media.go Normal file
View File

@@ -0,0 +1,23 @@
package media
import "gorm.io/gorm"
type Status string
const (
Transcoding Status = "transcoding"
)
type Video struct {
gorm.Model
OriginalID uint // Original.ID
Source string // "original", "transcode"
Filename string
Width uint
Height uint
FPS float64
Length float64
Size int64
Type string
Codec string
}