package entity type VideoCopy struct { Id int VideoId string ChannelId string VideoTitle string VideoLen int VideoType string VideoPublishTime string VideoLanguage string IsDownload int IsCopy int } type Video struct { Id uint `gorm:"column:id;primaryKey;autoIncrement"` VideoId string `gorm:"column:videoId;type:varchar(255);not null"` ChannelId string `gorm:"column:channelId;type:varchar(255);not null"` VideoTitle string `gorm:"column:videoTitle;type:varchar(255);not null"` VideoLen int `gorm:"column:videoLen;type:int;not null"` VideoType string `gorm:"column:videoType;type:varchar(255);not null"` VideoPublishTime string `gorm:"column:videoPublishTime;type:varchar(255);not null"` VideoLanguage string `gorm:"column:videoLanguage;type:varchar(255);not null"` IsDownload int `gorm:"column:isDownload;type:int;not null"` } func (Video) TableName() string { return "Videos" }