From 8818d6bb1543ff77bd00050a8958821df78b061e Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Sat, 13 Dec 2025 12:02:30 +0100 Subject: [PATCH] feat: Add `type` and `usageData` columns to the item schema to support item usage effects. --- src/db/schema.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db/schema.ts b/src/db/schema.ts index 1aa6b3b..d018192 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -50,6 +50,9 @@ export const items = pgTable('items', { rarity: varchar('rarity', { length: 20 }).default('Common'), // Economy & Visuals + type: varchar('type', { length: 50 }).notNull().default('MATERIAL'), + // Examples: 'CONSUMABLE', 'EQUIPMENT', 'MATERIAL' + usageData: jsonb('usage_data').default({}), price: bigint('price', { mode: 'bigint' }), iconUrl: text('icon_url').notNull(), imageUrl: text('image_url').notNull(),