feat: add video module

This commit is contained in:
Leon
2025-12-07 16:45:00 +08:00
parent a764e293fb
commit e13b74f7e0
4 changed files with 223 additions and 0 deletions

12
internal/video/entity.go Normal file
View File

@@ -0,0 +1,12 @@
package video
import "time"
type Video struct {
ID uint `gorm:"primaryKey"`
AuthorID uint `gorm:"index;not null"`
Title string `gorm:"type:varchar(255);not null"`
Description string `gorm:"type:varchar(255);"`
PlayURL string `gorm:"type:varchar(255);not null"`
CreateTime time.Time `gorm:"autoCreateTime"`
}