feat: update costs
This commit is contained in:
@@ -19,6 +19,7 @@ export const transaction = pgTable("transaction", {
|
||||
id: text("id").primaryKey(),
|
||||
user_id: text("user_id").notNull(),
|
||||
plaid_id: text("plaid_id").notNull().unique(),
|
||||
account_id: text("account_id").notNull(),
|
||||
name: text("name").notNull(),
|
||||
amount: decimal("amount").notNull(),
|
||||
datetime: timestamp("datetime"),
|
||||
|
||||
@@ -185,6 +185,15 @@ export const schema = {
|
||||
"plaid_id"
|
||||
>,
|
||||
},
|
||||
account_id: {
|
||||
type: "string",
|
||||
optional: false,
|
||||
customType: null as unknown as ZeroCustomType<
|
||||
ZeroSchema,
|
||||
"transaction",
|
||||
"account_id"
|
||||
>,
|
||||
},
|
||||
name: {
|
||||
type: "string",
|
||||
optional: false,
|
||||
|
||||
Reference in New Issue
Block a user