Browse Source

修改数据库

master
超级管理员 3 years ago
parent
commit
6228861484
  1. 7
      models/modelshonory/photos_gallery.go

7
models/modelshonory/photos_gallery.go

@ -5,13 +5,8 @@ import (
"strings"
)
<<<<<<< HEAD:models/photos_gallery.go
//图片库
type PhotosGallery struct {
=======
// 图片库
type PhotosGallery struct {
>>>>>>> v1_dev:models/modelshonory/photos_gallery.go
Id int64 `json:"id" gorm:"primaryKey;column:id;type:bigint(20) unsigned;not null;comment:ID"`
Url string `json:"url" gorm:"column:url;type:varchar(255) unsigned;default:'';not null;comment:图片地址"`
ImgPath string `json:"imgpath" gorm:"column:img_path;type:varchar(255) unsigned;default:'';not null;comment:物理地址"`
@ -19,7 +14,7 @@ type PhotosGallery struct {
FileSize string `json:"filesize" gorm:"column:file_size;type:varchar(255) unsigned;default:'';not null;comment:文档大小"`
Time int64 `json:"time" gorm:"column:time;type:bigint(20) unsigned;default:0;not null;comment:创建时间"`
AscriptionId int64 `json:"ascriptionid" gorm:"column:ascription_id;type:bigint(20) unsigned;default:0;not null;comment:归属"`
AscriptionDataSheet string `json:"ascriptiondatasheet" gorm:"column:ascription_data_sheet;type:varchar(255) unsigned;default:'';not null;comment:归属个数据表"`
AscriptionDataSheet string `json:"ascriptiondatasheet" gorm:"column:ascription_data_sheet;type:varchar(255) unsigned;default:'';not null;comment:归属个数据表"`
State int `json:"state" gorm:"column:state;type:tinyint(1) unsigned;default:1;not null;comment:状态(1:启用;2:禁用;3:删除)"`
}

Loading…
Cancel
Save