feat: implement group filter management with caching and database integration
This commit is contained in:
@@ -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{})
|
||||
}
|
||||
Reference in New Issue
Block a user