mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
24 lines
432 B
Go
24 lines
432 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Metadata struct {
|
|
bun.BaseModel `bun:"payments.metadata"`
|
|
|
|
PaymentID PaymentID `bun:",pk,nullzero"`
|
|
CreatedAt time.Time `bun:",nullzero"`
|
|
Key string `bun:",pk,nullzero"`
|
|
Value string
|
|
|
|
Changelog []MetadataChangelog `bun:",nullzero"`
|
|
}
|
|
|
|
type MetadataChangelog struct {
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Value string `json:"value"`
|
|
}
|