style tweaks to both form and existing inventory, added createdAt and modified purchasePrice (for % of market)

This commit is contained in:
Zach Harding
2026-04-05 16:09:52 -04:00
parent 87235ab37a
commit 404355304c
8 changed files with 1914 additions and 95 deletions

View File

@@ -132,8 +132,9 @@ export const inventory = pokeSchema.table('inventory',{
cardId: integer().notNull(),
condition: varchar({ length: 255 }).notNull(),
quantity: integer(),
purchasePrice: integer(),
note: varchar({ length:255 })
purchasePrice: decimal({ precision: 10, scale: 2 }),
note: varchar({ length:255 }),
createdAt: timestamp().notNull().defaultNow(),
},
(table) => [
index('idx_userid_cardid').on(table.userId, table.cardId)