Files

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
}