feat: Add type and usageData columns to the item schema to support item usage effects.

This commit is contained in:
syntaxbullet
2025-12-13 12:02:30 +01:00
parent 29899acc7f
commit 8818d6bb15

View File

@@ -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(),