Move Video to media package
This commit is contained in:
23
media/media.go
Normal file
23
media/media.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user