feat: show transaction info

This commit is contained in:
Max Koon
2025-10-15 15:52:15 -04:00
parent 1551d39978
commit 22dbe2b3b5
6 changed files with 116 additions and 48 deletions

View File

@@ -176,6 +176,15 @@ export const schema = {
"user_id"
>,
},
plaid_id: {
type: "string",
optional: false,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"plaid_id"
>,
},
name: {
type: "string",
optional: false,
@@ -194,6 +203,53 @@ export const schema = {
"amount"
>,
},
datetime: {
type: "number",
optional: true,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"datetime"
>,
},
authorized_datetime: {
type: "number",
optional: true,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"authorized_datetime"
>,
},
json: {
type: "string",
optional: true,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"json"
>,
},
createdAt: {
type: "number",
optional: true,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"createdAt"
>,
serverName: "created_at",
},
updatedAt: {
type: "number",
optional: true,
customType: null as unknown as ZeroCustomType<
ZeroSchema,
"transaction",
"updatedAt"
>,
serverName: "updated_at",
},
},
primaryKey: ["id"],
},