File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type Download struct {
22
22
23
23
CreatedAt time.Time `json:"created_at"`
24
24
UpdatedAt time.Time `json:"updated_at"`
25
- DeletedAt * time.Time `json:"-" sql:"index:idx_downloads_deleted_at "`
25
+ DeletedAt * time.Time `json:"-" sql:"index"`
26
26
}
27
27
28
28
// TableName returns the database table name for the Download model.
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const (
50
50
51
51
// Order model
52
52
type Order struct {
53
- InstanceID string `json:"-"`
53
+ InstanceID string `json:"-" sql:"index" `
54
54
ID string `json:"id"`
55
55
InvoiceNumber int64 `json:"invoice_number,omitempty"`
56
56
@@ -100,9 +100,9 @@ type Order struct {
100
100
Coupon * Coupon `json:"coupon,omitempty" sql:"-"`
101
101
RawCoupon string `json:"-" sql:"type:text"`
102
102
103
- CreatedAt time.Time `json:"created_at"`
103
+ CreatedAt time.Time `json:"created_at" sql:"index" `
104
104
UpdatedAt time.Time `json:"updated_at"`
105
- DeletedAt * time.Time `json:"-" sql:"index:idx_orders_deleted_at "`
105
+ DeletedAt * time.Time `json:"-" sql:"index"`
106
106
}
107
107
108
108
// TableName returns the database table name for the Order model.
You can’t perform that action at this time.
0 commit comments