mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-08 08:59:55 +08:00
feat: add expiration handling for database entries and enhance user model with rules
This commit is contained in:
11
dao/model.go
11
dao/model.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user