package entity type Srtfile 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"` Ordinal int `gorm:"column:ordinal;type:int(11);not null"` SrtStartTime string `gorm:"column:srtStartTime;type:varchar(255);not null"` SrtEndTime string `gorm:"column:srtEndTime;type:varchar(255);not null"` SrtText string `gorm:"column:srtText;type:varchar(255);not null"` IsScan int `gorm:"column:isScan;type:int(11);default:null"` } // TableName sets the insert table name for this struct type func (Srtfile) TableName() string { return "Srtfile" }