12345678910111213141516171819202122232425262728293031323334353637383940 |
- package yb_community_question_audio
- import (
- "time"
- )
- type YbCommunityQuestionAudio struct {
- CommunityQuestionAudioID int `gorm:"primaryKey;column:community_question_audio_id;type:int(10) unsigned;not null" json:"-"`
- CommunityQuestionID int `gorm:"index:idx_question_id;column:community_question_id;type:int(10) unsigned;not null;default:0" json:"communityQuestionId"`
- AudioURL string `gorm:"column:audio_url;type:varchar(255);not null;default:''" json:"audioUrl"`
- AudioPlaySeconds string `gorm:"column:audio_play_seconds;type:varchar(30);not null;default:''" json:"audioPlaySeconds"`
- AudioSize string `gorm:"column:audio_size;type:varchar(30);not null;default:''" json:"audioSize"`
- Sort int `gorm:"column:sort;type:int(10) unsigned;not null;default:0" json:"sort"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- }
- func (m *YbCommunityQuestionAudio) TableName() string {
- return "yb_community_question_audio"
- }
- var YbCommunityQuestionAudioColumns = struct {
- CommunityQuestionAudioID string
- CommunityQuestionID string
- AudioURL string
- AudioPlaySeconds string
- AudioSize string
- Sort string
- CreateTime string
- }{
- CommunityQuestionAudioID: "community_question_audio_id",
- CommunityQuestionID: "community_question_id",
- AudioURL: "audio_url",
- AudioPlaySeconds: "audio_play_seconds",
- AudioSize: "audio_size",
- Sort: "sort",
- CreateTime: "create_time",
- }
|