diff --git a/scripts/seed-demo.ts b/scripts/seed-demo.ts index 3f52509..ae35a8d 100644 --- a/scripts/seed-demo.ts +++ b/scripts/seed-demo.ts @@ -6,24 +6,24 @@ const DEMO_TEAM_UUID = process.env.DEMO_TEAM_UUID ?? '11111111-1111-4111-8111-11 const products = [ { uuid: '55555555-1111-4111-8111-111111111111', - sku: 'DEMO-COPPER-CATHODE', - name: 'Copper cathode', - categoryName: 'Metals', - unit: 'ton', + sku: 'DEMO-SOLAR-PANELS', + name: 'Solar panels', + categoryName: 'Equipment', + unit: 'pallet', description: 'Demo exchange product', }, { uuid: '55555555-1111-4111-8111-222222222222', - sku: 'DEMO-ALUMINUM-INGOT', - name: 'Aluminum ingot', - categoryName: 'Metals', - unit: 'ton', + sku: 'DEMO-INDUSTRIAL-PUMPS', + name: 'Industrial pumps', + categoryName: 'Equipment', + unit: 'unit', description: 'Demo exchange product', }, { uuid: '55555555-1111-4111-8111-333333333333', - sku: 'DEMO-WHEAT', - name: 'Wheat', + sku: 'DEMO-SOYBEAN-MEAL', + name: 'Soybean meal', categoryName: 'Agriculture', unit: 'ton', description: 'Demo exchange product', @@ -34,17 +34,17 @@ const suppliers = [ { uuid: '66666666-2222-4111-8111-111111111111', teamUuid: DEMO_TEAM_UUID, - name: 'Demo Supplier Almaty', - description: 'Demo supplier tied to the seeded client team', - country: 'Kazakhstan', - countryCode: 'KZ', + name: 'Guangzhou Solar Factory', + description: 'Demo solar panel supplier near Guangzhou rail terminal', + country: 'China', + countryCode: 'CN', isVerified: true, }, { uuid: '66666666-2222-4111-8111-222222222222', teamUuid: null, - name: 'Demo Supplier Urumqi', - description: 'Demo supplier for catalog testing', + name: 'Shenzhen Pump Works', + description: 'Demo industrial supplier near Yantian sea port', country: 'China', countryCode: 'CN', isVerified: true, @@ -52,8 +52,17 @@ const suppliers = [ { uuid: '66666666-2222-4111-8111-333333333333', teamUuid: null, - name: 'Demo Supplier Moscow', - description: 'Demo supplier for catalog testing', + name: 'Harbin Agro Export', + description: 'Demo agriculture supplier near rail export hub', + country: 'China', + countryCode: 'CN', + isVerified: true, + }, + { + uuid: '66666666-2222-4111-8111-444444444444', + teamUuid: null, + name: 'Vladivostok Timber Terminal', + description: 'Demo Russian supplier near Far East port and rail', country: 'Russia', countryCode: 'RU', isVerified: true, @@ -87,8 +96,9 @@ for (let index = 0; index < 24; index += 1) { const supplier = await prisma.supplier.findUniqueOrThrow({ where: { uuid: supplierSeed.uuid } }) const originPointUuid = [ 'logistics-demo-hub-1', - 'logistics-demo-hub-3', 'logistics-demo-hub-2', + 'logistics-demo-hub-3', + 'logistics-demo-hub-4', ][Math.floor(index / products.length) % suppliers.length] await prisma.quote.upsert({