Pipelinen parannuksia building blockeilla
This commit is contained in:
111
zipit/template_runs/tmpl_inventory/spec.json
Normal file
111
zipit/template_runs/tmpl_inventory/spec.json
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"project_name": "warehouse_management",
|
||||
"description": "A system for managing warehouse operations including products, storage locations, and transfers between locations.",
|
||||
"entities": [
|
||||
{
|
||||
"name": "Product",
|
||||
"table_name": "products",
|
||||
"fields": [
|
||||
{
|
||||
"name": "product_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"sa_type": "String(255)",
|
||||
"py_type": "str",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"sa_type": "Text",
|
||||
"py_type": "str | None",
|
||||
"nullable": true,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "category",
|
||||
"sa_type": "String(50)",
|
||||
"py_type": "str",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "StorageLocation",
|
||||
"table_name": "storage_locations",
|
||||
"fields": [
|
||||
{
|
||||
"name": "location_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"sa_type": "String(255)",
|
||||
"py_type": "str",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "capacity",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Transfer",
|
||||
"table_name": "transfers",
|
||||
"fields": [
|
||||
{
|
||||
"name": "transfer_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "product_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "from_location_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "to_location_id",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": null
|
||||
},
|
||||
{
|
||||
"name": "quantity",
|
||||
"sa_type": "Integer",
|
||||
"py_type": "int",
|
||||
"nullable": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extra_imports": [
|
||||
"from datetime import date"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user