feat: add expiration handling for database entries and enhance user model with rules

This commit is contained in:
krau
2025-04-12 11:14:13 +08:00
parent 50fba3f910
commit 3bdef20e85
4 changed files with 59 additions and 11 deletions

View File

@@ -24,6 +24,8 @@ type User struct {
Silent bool
DefaultStorage string // Default storage name
Dirs []Dir
ApplyRule bool
Rules []Rule
}
type Dir struct {
@@ -37,3 +39,12 @@ type CallbackData struct {
gorm.Model
Data string
}
type Rule struct {
gorm.Model
UserID uint
Type string
Data string
StorageName string
DirPath string
}