mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
25 lines
403 B
Go
25 lines
403 B
Go
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Adjustment struct {
|
|
bun.BaseModel `bun:"payments.adjustment"`
|
|
|
|
ID uuid.UUID `bun:",pk,nullzero"`
|
|
PaymentID PaymentID `bun:",pk,nullzero"`
|
|
CreatedAt time.Time `bun:",nullzero"`
|
|
Reference string
|
|
Amount int64
|
|
Status PaymentStatus
|
|
Absolute bool
|
|
|
|
RawData json.RawMessage
|
|
}
|