diff --git a/store/models.go b/store/models.go index 655c3bd..1c298bc 100644 --- a/store/models.go +++ b/store/models.go @@ -86,8 +86,8 @@ type Feedback struct { RKey string `gorm:"column:rkey;primarykey;not null" json:"rkey"` Version string `gorm:"column:version" json:"version"` - ItemAccountDID string `gorm:"column:item_account_did;not null;index:idx_comment_item" json:"item_account_did"` - ItemRKey string `gorm:"column:item_rkey;not null;index:idx_comment_item" json:"item_rkey"` + ItemAccountDID string `gorm:"column:item_account_did;not null;index:idx_feedback_item" json:"item_account_did"` + ItemRKey string `gorm:"column:item_rkey;not null;index:idx_feedback_item" json:"item_rkey"` Value bool `gorm:"column:value;not null" json:"value"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` } @@ -102,8 +102,8 @@ type Reaction struct { RKey string `gorm:"column:rkey;primarykey;not null" json:"rkey"` Version string `gorm:"column:version" json:"version"` - ItemAccountDID string `gorm:"column:item_account_did;not null;index:idx_comment_item" json:"item_account_did"` - ItemRKey string `gorm:"column:item_rkey;not null;index:idx_comment_item" json:"item_rkey"` + ItemAccountDID string `gorm:"column:item_account_did;not null;index:idx_reaction_item" json:"item_account_did"` + ItemRKey string `gorm:"column:item_rkey;not null;index:idx_reaction_item" json:"item_rkey"` Emoji string `gorm:"column:emoji;not null" json:"emoji"` }