// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package model const TableNameLibraryQa = "library_qa" // LibraryQa mapped from table type LibraryQa struct { ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"` CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"` UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"` IsDel int8 `gorm:"column:is_del;type:tinyint;not null;comment:是否已删除(1-是,0-否)" json:"is_del"` HashID string `gorm:"column:hash_id;type:varchar(20);not null;uniqueIndex:uniq_hash_id,priority:1;comment:对外hash_id" json:"hash_id"` ProjectID int64 `gorm:"column:project_id;type:bigint;not null;comment:项目id(project表)" json:"project_id"` GroupID int64 `gorm:"column:group_id;type:bigint;not null;index:idx_group_id,priority:1;comment:题库组id(libary_qa_group表)" json:"group_id"` Mark string `gorm:"column:mark;type:varchar(10);not null;comment:问题类型(image_text-图文,video-视频,audio-音频)" json:"mark"` Title string `gorm:"column:title;type:varchar(255);not null;comment:题目" json:"title"` LinkURL string `gorm:"column:link_url;type:varchar(500);not null;comment:附件链接地址" json:"link_url"` CoverURL string `gorm:"column:cover_url;type:varchar(64);not null;comment:封面图地址" json:"cover_url"` ExplainText string `gorm:"column:explain_text;type:varchar(1000);not null;comment:答案讲解文本" json:"explain_text"` ExplainImg string `gorm:"column:explain_img;type:varchar(255);not null;comment:答案讲解图" json:"explain_img"` AnswerMark string `gorm:"column:answer_mark;type:varchar(10);not null;comment:答案类型(image_text-图文,text-文本)" json:"answer_mark"` } // TableName LibraryQa's table name func (*LibraryQa) TableName() string { return TableNameLibraryQa }