Add the deleted feature.

This commit is contained in:
lishuang
2020-07-12 17:26:15 +08:00
parent c970acbe8b
commit 82047f4504
4 changed files with 176 additions and 8 deletions

View File

@ -45,6 +45,7 @@ type Matter struct {
Children []*Matter `json:"-" gorm:"-"`
Prop string `json:"prop" gorm:"type:varchar(1024) not null;default:'{}'"`
VisitTime time.Time `json:"visitTime" gorm:"type:timestamp not null;default:'2018-01-01 00:00:00'"`
Deleted bool `json:"deleted" gorm:"type:tinyint(1) not null;default:0"`
}
// set File's table name to be `profiles`