images_sources.go 505 B

12345678910111213141516171819
  1. package media
  2. import (
  3. "time"
  4. )
  5. type ImageSource struct {
  6. Id int `gorm:"column:id;primary_key;autoIncrement:'id'"`
  7. ImgName string `gorm:"column:img_name"`
  8. SrcUrl string `gorm:"column:src_url"`
  9. PermissionId int `gorm:"column:permission_id"`
  10. Deleted bool `gorm:"deleted"`
  11. CreatedTime time.Time `gorm:"column:created_time"`
  12. UpdatedTime time.Time `gorm:"column:updated_time"`
  13. }
  14. func (i *ImageSource) TableName() string {
  15. return "image_sources"
  16. }