project_photo.go 637 B

12345678910111213141516
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type ProjectPhoto struct {
  6. ProjectPhotoId int `gorm:"column:project_photo_id;type:int(11);primary_key" json:"project_photo_id"` // 项目图片id
  7. PhotoUrl string `gorm:"column:photo_url;type:varchar(1000)" json:"photo_url"` // 图片url
  8. ProjectId int `gorm:"column:project_id;type:int(11)" json:"project_id"` // 所属项目id
  9. CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"` // 创建时间
  10. }
  11. func (m *ProjectPhoto) TableName() string {
  12. return "project_photo"
  13. }