mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Add composite index on Activity Type and RefID fields
This commit is contained in:
@@ -17,8 +17,8 @@ const (
|
||||
type Activity struct {
|
||||
gorm.Model
|
||||
UserID uint `gorm:"not null"`
|
||||
Type ActivityType `gorm:"not null"`
|
||||
RefID uint `gorm:"not null"` // Reference ID for the resource or comment
|
||||
Type ActivityType `gorm:"not null;index:idx_type_refid"`
|
||||
RefID uint `gorm:"not null;index:idx_type_refid"`
|
||||
}
|
||||
|
||||
type ActivityView struct {
|
||||
|
Reference in New Issue
Block a user