fix(review): harden payment, oauth, and migration paths
This commit is contained in:
@@ -185,7 +185,9 @@ func (PaymentOrder) Edges() []ent.Edge {
|
||||
|
||||
func (PaymentOrder) Indexes() []ent.Index {
|
||||
return []ent.Index{
|
||||
index.Fields("out_trade_no"),
|
||||
index.Fields("out_trade_no").
|
||||
Unique().
|
||||
Annotations(entsql.IndexWhere("out_trade_no <> ''")),
|
||||
index.Fields("user_id"),
|
||||
index.Fields("status"),
|
||||
index.Fields("expires_at"),
|
||||
|
||||
Reference in New Issue
Block a user