2
0
mirror of https://github.com/inventree/demo-dataset.git synced 2025-04-27 21:16:50 +00:00

Parameter tweaks (#47)

- Add data types for parameters, etc
This commit is contained in:
Oliver 2023-06-01 20:21:10 +10:00 committed by GitHub
parent 1929eb0c32
commit 978505d84c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4193,7 +4193,7 @@
"model": "common.inventreesetting", "model": "common.inventreesetting",
"pk": 128, "pk": 128,
"fields": { "fields": {
"value": "2023-05-26T04:56:32.980943", "value": "2023-06-01T09:28:20.683862",
"key": "_RUN_BACKUP_SUCCESS" "key": "_RUN_BACKUP_SUCCESS"
} }
}, },
@ -4201,7 +4201,7 @@
"model": "common.inventreesetting", "model": "common.inventreesetting",
"pk": 129, "pk": 129,
"fields": { "fields": {
"value": "2023-05-26T04:56:27.013487", "value": "2023-06-01T09:28:17.231475",
"key": "_RUN_BACKUP_ATTEMPT" "key": "_RUN_BACKUP_ATTEMPT"
} }
}, },
@ -76901,6 +76901,90 @@
"sale_history_max": null "sale_history_max": null
} }
}, },
{
"model": "part.partpricing",
"pk": 828,
"fields": {
"updated": "2023-06-01T09:28:18.203Z",
"currency": "USD",
"scheduled_for_update": false,
"part": 900,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
"bom_cost_max_currency": "USD",
"bom_cost_max": null,
"purchase_cost_min_currency": "USD",
"purchase_cost_min": null,
"purchase_cost_max_currency": "USD",
"purchase_cost_max": null,
"internal_cost_min_currency": "USD",
"internal_cost_min": null,
"internal_cost_max_currency": "USD",
"internal_cost_max": null,
"supplier_price_min_currency": "USD",
"supplier_price_min": null,
"supplier_price_max_currency": "USD",
"supplier_price_max": null,
"variant_cost_min_currency": "USD",
"variant_cost_min": null,
"variant_cost_max_currency": "USD",
"variant_cost_max": null,
"overall_min_currency": "USD",
"overall_min": null,
"overall_max_currency": "USD",
"overall_max": null,
"sale_price_min_currency": "USD",
"sale_price_min": null,
"sale_price_max_currency": "USD",
"sale_price_max": null,
"sale_history_min_currency": "USD",
"sale_history_min": null,
"sale_history_max_currency": "USD",
"sale_history_max": null
}
},
{
"model": "part.partpricing",
"pk": 829,
"fields": {
"updated": "2023-06-01T09:28:18.203Z",
"currency": "USD",
"scheduled_for_update": false,
"part": 901,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
"bom_cost_max_currency": "USD",
"bom_cost_max": null,
"purchase_cost_min_currency": "USD",
"purchase_cost_min": null,
"purchase_cost_max_currency": "USD",
"purchase_cost_max": null,
"internal_cost_min_currency": "USD",
"internal_cost_min": null,
"internal_cost_max_currency": "USD",
"internal_cost_max": null,
"supplier_price_min_currency": "USD",
"supplier_price_min": null,
"supplier_price_max_currency": "USD",
"supplier_price_max": null,
"variant_cost_min_currency": "USD",
"variant_cost_min": null,
"variant_cost_max_currency": "USD",
"variant_cost_max": null,
"overall_min_currency": "USD",
"overall_min": null,
"overall_max_currency": "USD",
"overall_max": null,
"sale_price_min_currency": "USD",
"sale_price_min": null,
"sale_price_max_currency": "USD",
"sale_price_max": null,
"sale_history_min_currency": "USD",
"sale_history_min": null,
"sale_history_max_currency": "USD",
"sale_history_max": null
}
},
{ {
"model": "part.partstocktake", "model": "part.partstocktake",
"pk": 1, "pk": 1,
@ -86748,7 +86832,9 @@
"metadata": {}, "metadata": {},
"name": "Package", "name": "Package",
"units": "", "units": "",
"description": "Component package code" "description": "Component package code",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86758,7 +86844,9 @@
"metadata": {}, "metadata": {},
"name": "Resistance", "name": "Resistance",
"units": "ohms", "units": "ohms",
"description": "Resistance value" "description": "Resistance value",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86768,7 +86856,9 @@
"metadata": null, "metadata": null,
"name": "Tolerance", "name": "Tolerance",
"units": "percent", "units": "percent",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86778,7 +86868,9 @@
"metadata": {}, "metadata": {},
"name": "Length", "name": "Length",
"units": "km", "units": "km",
"description": "Part length" "description": "Part length",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86788,7 +86880,9 @@
"metadata": {}, "metadata": {},
"name": "Thread", "name": "Thread",
"units": "mm", "units": "mm",
"description": "Metric thread pitch" "description": "Metric thread pitch",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86798,7 +86892,9 @@
"metadata": null, "metadata": null,
"name": "Width", "name": "Width",
"units": "mm", "units": "mm",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86808,7 +86904,9 @@
"metadata": null, "metadata": null,
"name": "Height", "name": "Height",
"units": "mm", "units": "mm",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86818,7 +86916,9 @@
"metadata": {}, "metadata": {},
"name": "Color", "name": "Color",
"units": "", "units": "",
"description": "Part color" "description": "Part color",
"checkbox": false,
"choices": "Red, Blue, Green, Orange, Yellow, Black, White, Pink, Purple"
} }
}, },
{ {
@ -86828,7 +86928,9 @@
"metadata": {}, "metadata": {},
"name": "Volume", "name": "Volume",
"units": "m^3", "units": "m^3",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86838,7 +86940,9 @@
"metadata": null, "metadata": null,
"name": "Material", "name": "Material",
"units": "", "units": "",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86848,7 +86952,9 @@
"metadata": null, "metadata": null,
"name": "Pitch", "name": "Pitch",
"units": "mm", "units": "mm",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86858,17 +86964,21 @@
"metadata": null, "metadata": null,
"name": "Positions", "name": "Positions",
"units": "", "units": "",
"description": "" "description": "",
"checkbox": false,
"choices": ""
} }
}, },
{ {
"model": "part.partparametertemplate", "model": "part.partparametertemplate",
"pk": 13, "pk": 13,
"fields": { "fields": {
"metadata": null, "metadata": {},
"name": "Rows", "name": "Rows",
"units": "", "units": "",
"description": "" "description": "",
"checkbox": false,
"choices": "1, 2, 3, 4, 5, 6, 7"
} }
}, },
{ {
@ -86878,7 +86988,9 @@
"metadata": {}, "metadata": {},
"name": "Voltage", "name": "Voltage",
"units": "V", "units": "V",
"description": "Rated voltage" "description": "Rated voltage",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86888,7 +87000,9 @@
"metadata": {}, "metadata": {},
"name": "Capacitance", "name": "Capacitance",
"units": "F", "units": "F",
"description": "Capacitance value" "description": "Capacitance value",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86898,7 +87012,9 @@
"metadata": {}, "metadata": {},
"name": "Inductance", "name": "Inductance",
"units": "H", "units": "H",
"description": "Inductance value" "description": "Inductance value",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86908,7 +87024,9 @@
"metadata": {}, "metadata": {},
"name": "Power", "name": "Power",
"units": "W", "units": "W",
"description": "Power Rating" "description": "Power Rating",
"checkbox": false,
"choices": ""
} }
}, },
{ {
@ -86918,7 +87036,21 @@
"metadata": {}, "metadata": {},
"name": "Wire Gauge", "name": "Wire Gauge",
"units": "", "units": "",
"description": "Wire gauge (conductor CSA)" "description": "Wire gauge (conductor CSA)",
"checkbox": false,
"choices": ""
}
},
{
"model": "part.partparametertemplate",
"pk": 19,
"fields": {
"metadata": {},
"name": "Polarized",
"units": "",
"description": "Is this part polarized?",
"checkbox": true,
"choices": ""
} }
}, },
{ {
@ -88587,7 +88719,7 @@
"fields": { "fields": {
"part": 89, "part": 89,
"template": 8, "template": 8,
"data": "blue", "data": "Blue",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88597,7 +88729,7 @@
"fields": { "fields": {
"part": 92, "part": 92,
"template": 8, "template": 8,
"data": "green", "data": "Green",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88607,7 +88739,7 @@
"fields": { "fields": {
"part": 93, "part": 93,
"template": 8, "template": 8,
"data": "pink", "data": "Pink",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88617,7 +88749,7 @@
"fields": { "fields": {
"part": 90, "part": 90,
"template": 8, "template": 8,
"data": "red", "data": "Red",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88627,7 +88759,7 @@
"fields": { "fields": {
"part": 91, "part": 91,
"template": 8, "template": 8,
"data": "yellow", "data": "Yellow",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88637,7 +88769,7 @@
"fields": { "fields": {
"part": 75, "part": 75,
"template": 8, "template": 8,
"data": "pink", "data": "Pink",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88647,7 +88779,7 @@
"fields": { "fields": {
"part": 76, "part": 76,
"template": 8, "template": 8,
"data": "purple", "data": "Purple",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88657,7 +88789,7 @@
"fields": { "fields": {
"part": 72, "part": 72,
"template": 8, "template": 8,
"data": "red", "data": "Red",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88667,7 +88799,7 @@
"fields": { "fields": {
"part": 78, "part": 78,
"template": 8, "template": 8,
"data": "red", "data": "Red",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88677,7 +88809,7 @@
"fields": { "fields": {
"part": 79, "part": 79,
"template": 8, "template": 8,
"data": "red", "data": "Red",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88687,7 +88819,7 @@
"fields": { "fields": {
"part": 80, "part": 80,
"template": 8, "template": 8,
"data": "red", "data": "Red",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88697,7 +88829,7 @@
"fields": { "fields": {
"part": 82, "part": 82,
"template": 8, "template": 8,
"data": "black", "data": "Black",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88707,7 +88839,7 @@
"fields": { "fields": {
"part": 84, "part": 84,
"template": 8, "template": 8,
"data": "clear", "data": "White",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88717,7 +88849,7 @@
"fields": { "fields": {
"part": 83, "part": 83,
"template": 8, "template": 8,
"data": "gray", "data": "White",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88727,7 +88859,7 @@
"fields": { "fields": {
"part": 85, "part": 85,
"template": 8, "template": 8,
"data": "blue", "data": "Blue",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88737,7 +88869,7 @@
"fields": { "fields": {
"part": 74, "part": 74,
"template": 8, "template": 8,
"data": "blue", "data": "Blue",
"data_numeric": null "data_numeric": null
} }
}, },
@ -88747,7 +88879,7 @@
"fields": { "fields": {
"part": 73, "part": 73,
"template": 8, "template": 8,
"data": "green", "data": "Green",
"data_numeric": null "data_numeric": null
} }
}, },
@ -98651,6 +98783,126 @@
"data_numeric": 12.0 "data_numeric": 12.0
} }
}, },
{
"model": "part.partparameter",
"pk": 1898,
"fields": {
"part": 49,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1899,
"fields": {
"part": 50,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1900,
"fields": {
"part": 51,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1901,
"fields": {
"part": 52,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1902,
"fields": {
"part": 53,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1903,
"fields": {
"part": 54,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1904,
"fields": {
"part": 55,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1905,
"fields": {
"part": 56,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1906,
"fields": {
"part": 57,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1907,
"fields": {
"part": 58,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1908,
"fields": {
"part": 59,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{
"model": "part.partparameter",
"pk": 1909,
"fields": {
"part": 60,
"template": 19,
"data": "False",
"data_numeric": 0.0
}
},
{ {
"model": "part.bomitem", "model": "part.bomitem",
"pk": 1, "pk": 1,
@ -147406,7 +147658,7 @@
"purchase_price": null, "purchase_price": null,
"owner": null, "owner": null,
"lft": 1, "lft": 1,
"rght": 2, "rght": 8,
"tree_id": 1069, "tree_id": 1069,
"level": 0 "level": 0
} }
@ -147446,10 +147698,10 @@
"purchase_price_currency": "USD", "purchase_price_currency": "USD",
"purchase_price": null, "purchase_price": null,
"owner": null, "owner": null,
"lft": 1, "lft": 2,
"rght": 2, "rght": 3,
"tree_id": 1069, "tree_id": 1069,
"level": 0 "level": 1
} }
}, },
{ {
@ -147487,10 +147739,10 @@
"purchase_price_currency": "USD", "purchase_price_currency": "USD",
"purchase_price": null, "purchase_price": null,
"owner": null, "owner": null,
"lft": 1, "lft": 4,
"rght": 2, "rght": 5,
"tree_id": 1069, "tree_id": 1069,
"level": 0 "level": 1
} }
}, },
{ {
@ -147528,10 +147780,10 @@
"purchase_price_currency": "USD", "purchase_price_currency": "USD",
"purchase_price": null, "purchase_price": null,
"owner": null, "owner": null,
"lft": 1, "lft": 6,
"rght": 2, "rght": 7,
"tree_id": 1069, "tree_id": 1069,
"level": 0 "level": 1
} }
}, },
{ {
@ -165514,7 +165766,7 @@
"pk": 1, "pk": 1,
"fields": { "fields": {
"password": "pbkdf2_sha256$260000$NNqALp0c36DPuISI5Q6iM3$+ILiuXGdDbEo4PXR5myUO/zHaNXhzHMPdtN2lZaKrg8=", "password": "pbkdf2_sha256$260000$NNqALp0c36DPuISI5Q6iM3$+ILiuXGdDbEo4PXR5myUO/zHaNXhzHMPdtN2lZaKrg8=",
"last_login": "2023-05-26T04:59:30.211Z", "last_login": "2023-06-01T09:28:14.600Z",
"is_superuser": true, "is_superuser": true,
"username": "admin", "username": "admin",
"first_name": "", "first_name": "",