inventory
This commit is contained in:
@@ -230,4 +230,33 @@ export async function bootstrapAppData() {
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
if ((await prisma.warehouse.count()) === 0) {
|
||||
await prisma.warehouse.create({
|
||||
data: {
|
||||
code: "MAIN",
|
||||
name: "Main Warehouse",
|
||||
notes: "Primary stocking location for finished goods and purchased materials.",
|
||||
locations: {
|
||||
create: [
|
||||
{
|
||||
code: "RECV",
|
||||
name: "Receiving",
|
||||
notes: "Initial inbound inspection and receipt staging.",
|
||||
},
|
||||
{
|
||||
code: "STOCK-A1",
|
||||
name: "Aisle A1",
|
||||
notes: "General rack storage for standard material.",
|
||||
},
|
||||
{
|
||||
code: "FG-STAGE",
|
||||
name: "Finished Goods Staging",
|
||||
notes: "Outbound-ready finished assemblies.",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user