Feat: add and delete file tags

This commit is contained in:
HFO4
2020-02-12 11:38:04 +08:00
parent 127d0236f9
commit 15f4b1819b
10 changed files with 246 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ func migration() {
DB = DB.Set("gorm:table_options", "ENGINE=InnoDB")
}
DB.AutoMigrate(&User{}, &Setting{}, &Group{}, &Policy{}, &Folder{}, &File{}, &StoragePack{}, &Share{},
&Task{}, &Download{})
&Task{}, &Download{}, &Tag{})
// 创建初始存储策略
addDefaultPolicy()