Skip to content

Commit

Permalink
Merge branch 'feat/coupon' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sjatsh committed Nov 6, 2023
2 parents 5c1f96f + e29372d commit 10aa516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tables/t_coupon_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type CouponCode string
type CouponInfo struct {
Id uint64 `gorm:"column:id;primary_key;AUTO_INCREMENT;NOT NULL"`
Cid string `gorm:"index:idx_cid;column:cid;default:;NOT NULL"`
Code string `gorm:"index:idx_code;column:code;default:;NOT NULL"`
Code string `gorm:"uniqueIndex:idx_code;column:code;default:;NOT NULL"`
Status CouponStatus `gorm:"column:status;default:0;NOT NULL"`
CreatedAt time.Time `json:"created_at" gorm:"column:created_at; type:timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '';"`
UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at; type:timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '';"`
Expand Down

0 comments on commit 10aa516

Please sign in to comment.