teleconference_video.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package teleconference_video
  2. import (
  3. "time"
  4. )
  5. // TeleconferenceVideo [...]
  6. type TeleconferenceVideo struct {
  7. TeleconferenceVideoID int `gorm:"primaryKey;column:teleconference_video_id;type:int(11);not null" json:"-"`
  8. TeleconferenceID int `gorm:"index:idx_teleconference_id;column:teleconference_id;type:int(11);default:0" json:"teleconferenceId"`
  9. VideoURL string `gorm:"unique;column:video_url;type:varchar(500);default:''" json:"videoUrl"`
  10. VideoName string `gorm:"column:video_name;type:varchar(255);default:''" json:"videoName"`
  11. VideoPlaySeconds string `gorm:"column:video_play_seconds;type:varchar(255);default:''" json:"videoPlaySeconds"`
  12. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
  13. }
  14. // TableName get sql table name.获取数据库表名
  15. func (m *TeleconferenceVideo) TableName() string {
  16. return "teleconference_video"
  17. }
  18. // TeleconferenceVideoColumns get sql column name.获取数据库列名
  19. var TeleconferenceVideoColumns = struct {
  20. TeleconferenceVideoID string
  21. TeleconferenceID string
  22. VideoURL string
  23. VideoName string
  24. VideoPlaySeconds string
  25. CreateTime string
  26. }{
  27. TeleconferenceVideoID: "teleconference_video_id",
  28. TeleconferenceID: "teleconference_id",
  29. VideoURL: "video_url",
  30. VideoName: "video_name",
  31. VideoPlaySeconds: "video_play_seconds",
  32. CreateTime: "create_time",
  33. }