sec_example.go 693 B

12345678910111213141516
  1. package entity
  2. import "time"
  3. type SecExample struct {
  4. ExampleID int `gorm:"column:example_id;primary_key;AUTO_INCREMENT"` // 选品示例图id
  5. FileUrl string `gorm:"column:file_url"` // 文件url
  6. FileUid string `gorm:"column:file_uid"` // 文件uid
  7. SelectionID string `gorm:"column:selection_id"` // 所属项目id
  8. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  9. FileName string `gorm:"column:file_name"` // 文件名称
  10. }
  11. func (m *SecExample) TableName() string {
  12. return "younggee_sec_example"
  13. }