22 lines
606 B
Go
22 lines
606 B
Go
|
package order
|
||
|
|
||
|
import (
|
||
|
"github.com/google/uuid"
|
||
|
"github.com/uptrace/bun"
|
||
|
)
|
||
|
|
||
|
type DBPayment struct {
|
||
|
bun.BaseModel `bun:"table:api_youkassa_payment"`
|
||
|
ID uuid.UUID `bun:"payment_id,type:char(36),pk" json:"id"`
|
||
|
OrderId int64 `bun:"order_id" json:"orderId"`
|
||
|
Status string `bun:"status" json:"status"`
|
||
|
Link string `bun:"link" json:"link"`
|
||
|
BitrixPayment *DBOrderPayment `bun:"-"`
|
||
|
}
|
||
|
|
||
|
type DBOrderPayment struct {
|
||
|
bun.BaseModel `bun:"table:b_sale_order_payment"`
|
||
|
ID int `bun:"ID,pk"`
|
||
|
OrderId int `bun:"ORDER_ID,pk"`
|
||
|
}
|