mirror of https://github.com/synctv-org/synctv
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.
29 lines
496 B
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"`
|
|
}
|