12345678910111213141516171819 |
- package media
- import (
- "time"
- )
- type ImageSource struct {
- Id int `gorm:"column:id;primary_key;autoIncrement:'id'"`
- ImgName string `gorm:"column:img_name"`
- SrcUrl string `gorm:"column:src_url"`
- PermissionId int `gorm:"column:permission_id"`
- Deleted bool `gorm:"deleted"`
- CreatedTime time.Time `gorm:"column:created_time"`
- UpdatedTime time.Time `gorm:"column:updated_time"`
- }
- func (i *ImageSource) TableName() string {
- return "image_sources"
- }
|