feat: implement group filter management with caching and database integration

This commit is contained in:
Fd
2026-07-20 15:33:15 +07:00
parent a4914b3dfa
commit f6e6d4eb59
7 changed files with 239 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
package database
import "gorm.io/gorm"
type Filter struct {
gorm.Model
Key string `gorm:"type:varchar(255);uniqueIndex:idx_group_key"`
GroupID string `gorm:"type:varchar(255);uniqueIndex:idx_group_key"`
Content string `gorm:"type:text"`
}
func AutoMigrate() {
DB.AutoMigrate(&Filter{})
}