chore: mark as removed instead of delete history

This commit is contained in:
Simon Ding
2025-03-31 17:59:04 +08:00
parent c23666eabf
commit 3c9f6d0b23
6 changed files with 18 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ func (History) Fields() []ent.Field {
field.Int("indexer_id").Optional(),
field.String("link").Optional().Comment("deprecated, use hash instead"), //should be magnet link
field.String("hash").Optional().Comment("torrent hash"),
field.Enum("status").Values("running", "success", "fail", "uploading", "seeding"),
field.Enum("status").Values("running", "success", "fail", "uploading", "seeding", "removed"),
//field.String("saved").Optional().Comment("deprecated"), //deprecated
}
}