You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/model/movie.go

29 lines
496 B
Go

package model
import (
"gorm.io/gorm"
)
type Movie struct {
gorm.Model
Position uint `gorm:"not null"`
RoomID uint `gorm:"not null"`
MovieInfo
}
type MovieInfo struct {
BaseMovieInfo
PullKey string
CreatorID uint `gorm:"not null"`
}
type BaseMovieInfo struct {
Url string `gorm:"varchar(4096)"`
Name string `gorm:"not null;varchar(256)"`
Live bool
Proxy bool
RtmpSource bool
Type string
Headers map[string]string `gorm:"serializer:json"`
}