feat: Add type and usageData columns to the item schema to support item usage effects.
This commit is contained in:
@@ -50,6 +50,9 @@ export const items = pgTable('items', {
|
|||||||
rarity: varchar('rarity', { length: 20 }).default('Common'),
|
rarity: varchar('rarity', { length: 20 }).default('Common'),
|
||||||
|
|
||||||
// Economy & Visuals
|
// Economy & Visuals
|
||||||
|
type: varchar('type', { length: 50 }).notNull().default('MATERIAL'),
|
||||||
|
// Examples: 'CONSUMABLE', 'EQUIPMENT', 'MATERIAL'
|
||||||
|
usageData: jsonb('usage_data').default({}),
|
||||||
price: bigint('price', { mode: 'bigint' }),
|
price: bigint('price', { mode: 'bigint' }),
|
||||||
iconUrl: text('icon_url').notNull(),
|
iconUrl: text('icon_url').notNull(),
|
||||||
imageUrl: text('image_url').notNull(),
|
imageUrl: text('image_url').notNull(),
|
||||||
|
|||||||
Reference in New Issue
Block a user