feat: add orders
This commit is contained in:
31
backend/database/schemas/public/model/orders.go
Normal file
31
backend/database/schemas/public/model/orders.go
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// Code generated by go-jet DO NOT EDIT.
|
||||
//
|
||||
// WARNING: Changes to this file may cause incorrect behavior
|
||||
// and will be lost if the code is regenerated
|
||||
//
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"quyun/database/fields"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Orders struct {
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
OrderNo string `json:"order_no"`
|
||||
SubOrderNo string `json:"sub_order_no"`
|
||||
TransactionID string `json:"transaction_id"`
|
||||
RefundTransactionID string `json:"refund_transaction_id"`
|
||||
Price int64 `json:"price"`
|
||||
Discount int16 `json:"discount"`
|
||||
Currency string `json:"currency"`
|
||||
PaymentMethod string `json:"payment_method"`
|
||||
PostID int64 `json:"post_id"`
|
||||
UserID int64 `json:"user_id"`
|
||||
Status fields.OrderStatus `json:"status"`
|
||||
Meta fields.Json[fields.OrderMeta] `json:"meta"`
|
||||
}
|
||||
Reference in New Issue
Block a user