forked from syntaxbullet/AuroraBot-discord
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'),
|
||||
|
||||
// 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(),
|
||||
|
||||
Reference in New Issue
Block a user