Skip to content

Commit

Permalink
fix gorm id field
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jan 15, 2024
1 parent c9fbabe commit db2d39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/internal/orm/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type SenderMeta struct {
type Transaction struct {
db *gorm.DB `gorm:"column:-"`

ID uint `json:"id" gorm:"primaryKey"`
ID uint `json:"id" gorm:"id;primaryKey"`
ContextID string `json:"context_id" gorm:"context_id"`
Hash string `json:"hash" gorm:"hash"`
Type uint8 `json:"type" gorm:"type"`
Expand Down

0 comments on commit db2d39b

Please sign in to comment.