This commit is contained in:
Your Name committed 2026-06-28 05:52:46 -04:00
1 parent 5fac4524c8
commit e1d793ce37
69 files changed
+1892 -610

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import prisma from './src/lib/prisma';
async function main() {
const brand = await prisma.productBrand.findFirst({ where: { name: 'DDC' } });
let cat = await prisma.category.findFirst({ where: { name: 'Sprockets' } });
if (!cat) {
cat = await prisma.category.create({ data: { name: 'Sprockets' } });
}
console.log(JSON.stringify({ brandId: brand?.id, catId: cat.id }));
}
main().catch(console.error).finally(() => process.exit(0));
//# sourceMappingURL=scratch_seed_product.js.map