mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
23 lines
623 B
Go
23 lines
623 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Policy struct {
|
|
bun.BaseModel `bun:"reconciliations.policy" json:"-"`
|
|
|
|
// Policy Related fields
|
|
ID uuid.UUID `bun:",pk,nullzero" json:"id"`
|
|
CreatedAt time.Time `bun:",notnull" json:"createdAt"`
|
|
Name string `bun:",notnull" json:"name"`
|
|
|
|
// Reconciliation Needed fields
|
|
LedgerName string `bun:",notnull" json:"ledgerName"`
|
|
LedgerQuery map[string]interface{} `bun:",type:jsonb,notnull" json:"ledgerQuery"`
|
|
PaymentsPoolID uuid.UUID `bun:",notnull" json:"paymentsPoolID"`
|
|
}
|