1 import { InventoryType, Rarity } from '@prisma/client';
2 import {prisma} from '../../src/lib/db';
7 type: [InventoryType.R_ARM, InventoryType.L_ARM, InventoryType.WEAPON],
12 rarity: Rarity.COMMON,
16 rarity: Rarity.UNCOMMON,
33 type: [InventoryType.L_ARM, InventoryType.R_ARM, InventoryType.WEAPON],
38 rarity: Rarity.COMMON,
42 rarity: Rarity.UNCOMMON,
59 type: [InventoryType.BOTH_ARMS, InventoryType.WEAPON],
64 rarity: Rarity.COMMON,
68 rarity: Rarity.COMMON,
85 type: [InventoryType.ARMOUR, InventoryType.TORSO],
90 rarity: Rarity.COMMON,
94 rarity: Rarity.UNCOMMON,
111 type: [InventoryType.L_ARM, InventoryType.R_ARM, InventoryType.ARMOUR],
116 rarity: Rarity.COMMON,
120 rarity: Rarity.UNCOMMON,
137 export async function down() {
138 await prisma.inventory.deleteMany();
139 await prisma.lootTable.deleteMany();
140 await prisma.item.deleteMany();
143 export async function up() {
144 await prisma.item.createMany({