|
@@ -2,9 +2,9 @@ package model
|
|
|
|
|
|
type File struct {
|
|
|
ID string `json:"id" gorm:"type:varchar(128);primary_key"`
|
|
|
- Path string `gorm:"type:varchar(200);not null"`
|
|
|
- Delete int `gorm:"type:tinyint(1);not null"`
|
|
|
- Category string `gorm:"type:varchar(20);not null"`
|
|
|
+ Path string `json:"path" gorm:"type:varchar(200);not null"`
|
|
|
+ Delete int `json:"delete" gorm:"type:tinyint(1);not null"`
|
|
|
+ Category string `json:"category" gorm:"type:varchar(20);not null"`
|
|
|
CreatedAt Time `json:"created_at" gorm:"column:create_time;type:datetime default CURRENT_TIMESTAMP"`
|
|
|
UpdatedAt Time `json:"updated_at" gorm:"column:update_time;type:datetime default CURRENT_TIMESTAMP"`
|
|
|
}
|