models.go72 lines, 1.3 KB
| 1 | // Code generated by sqlc. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // sqlc v1.31.1 |
| 4 | |
| 5 | package transferdb |
| 6 | |
| 7 | import ( |
| 8 | "time" |
| 9 | |
| 10 | "github.com/google/uuid" |
| 11 | "github.com/jackc/pgx/v5/pgtype" |
| 12 | "go.opentelemetry.io/otel/propagation" |
| 13 | ) |
| 14 | |
| 15 | type AuditLog struct { |
| 16 | ID int64 |
| 17 | At time.Time |
| 18 | Actor string |
| 19 | Action string |
| 20 | Target string |
| 21 | Details []byte |
| 22 | Client string |
| 23 | RequestID string |
| 24 | TraceID string |
| 25 | } |
| 26 | |
| 27 | type Outbox struct { |
| 28 | Seq int64 |
| 29 | EventID uuid.UUID |
| 30 | Subject string |
| 31 | Payload []byte |
| 32 | CreatedAt time.Time |
| 33 | PublishedAt pgtype.Timestamptz |
| 34 | TraceContext propagation.MapCarrier |
| 35 | } |
| 36 | |
| 37 | type RiskDecision struct { |
| 38 | ID int64 |
| 39 | TransferID uuid.UUID |
| 40 | Decision string |
| 41 | Reasons []string |
| 42 | DecidedBy string |
| 43 | Note string |
| 44 | CreatedAt time.Time |
| 45 | } |
| 46 | |
| 47 | type Transfer struct { |
| 48 | ID uuid.UUID |
| 49 | UserID uuid.UUID |
| 50 | IdempotencyKey string |
| 51 | FromWalletID uuid.UUID |
| 52 | ToWalletID uuid.UUID |
| 53 | Amount int64 |
| 54 | Currency string |
| 55 | State string |
| 56 | FailureReason string |
| 57 | Attempts int32 |
| 58 | NextAttemptAt time.Time |
| 59 | Version int32 |
| 60 | CreatedAt time.Time |
| 61 | UpdatedAt time.Time |
| 62 | TraceContext propagation.MapCarrier |
| 63 | } |
| 64 | |
| 65 | type TransferStep struct { |
| 66 | ID int64 |
| 67 | TransferID uuid.UUID |
| 68 | Step string |
| 69 | Outcome string |
| 70 | Detail string |
| 71 | CreatedAt time.Time |
| 72 | } |