Spaces:
Running
Running
Update sample_data.py
Browse files- sample_data.py +361 -0
sample_data.py
CHANGED
|
@@ -1164,4 +1164,365 @@ NETWORK_GRAPH_JSON = """
|
|
| 1164 |
{"from": "image_uploader", "to": "image_storage", "label": "Store Images", "weight": 3}
|
| 1165 |
]
|
| 1166 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1167 |
"""
|
|
|
|
| 1164 |
{"from": "image_uploader", "to": "image_storage", "label": "Store Images", "weight": 3}
|
| 1165 |
]
|
| 1166 |
}
|
| 1167 |
+
"""
|
| 1168 |
+
|
| 1169 |
+
CLASS_DIAGRAM_JSON = """
|
| 1170 |
+
{
|
| 1171 |
+
"classes": [
|
| 1172 |
+
{
|
| 1173 |
+
"name": "Vehicle",
|
| 1174 |
+
"type": "abstract",
|
| 1175 |
+
"attributes": [
|
| 1176 |
+
{"name": "id", "type": "String", "visibility": "-"},
|
| 1177 |
+
{"name": "brand", "type": "String", "visibility": "#"},
|
| 1178 |
+
{"name": "model", "type": "String", "visibility": "#"},
|
| 1179 |
+
{"name": "year", "type": "int", "visibility": "#"},
|
| 1180 |
+
{"name": "price", "type": "double", "visibility": "+"},
|
| 1181 |
+
{"name": "vehicleCount", "type": "int", "visibility": "+", "static": true}
|
| 1182 |
+
],
|
| 1183 |
+
"methods": [
|
| 1184 |
+
{"name": "Vehicle", "parameters": [{"name": "brand", "type": "String"}, {"name": "model", "type": "String"}], "return_type": "Vehicle", "visibility": "+"},
|
| 1185 |
+
{"name": "startEngine", "return_type": "void", "visibility": "+", "abstract": true},
|
| 1186 |
+
{"name": "stopEngine", "return_type": "void", "visibility": "+"},
|
| 1187 |
+
{"name": "getPrice", "return_type": "double", "visibility": "+"},
|
| 1188 |
+
{"name": "setPrice", "parameters": [{"name": "price", "type": "double"}], "return_type": "void", "visibility": "+"},
|
| 1189 |
+
{"name": "getTotalVehicles", "return_type": "int", "visibility": "+", "static": true}
|
| 1190 |
+
]
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"name": "Car",
|
| 1194 |
+
"type": "class",
|
| 1195 |
+
"attributes": [
|
| 1196 |
+
{"name": "doors", "type": "int", "visibility": "-"},
|
| 1197 |
+
{"name": "transmission", "type": "TransmissionType", "visibility": "-"},
|
| 1198 |
+
{"name": "fuelType", "type": "FuelType", "visibility": "-"}
|
| 1199 |
+
],
|
| 1200 |
+
"methods": [
|
| 1201 |
+
{"name": "Car", "parameters": [{"name": "brand", "type": "String"}, {"name": "model", "type": "String"}, {"name": "doors", "type": "int"}], "return_type": "Car", "visibility": "+"},
|
| 1202 |
+
{"name": "startEngine", "return_type": "void", "visibility": "+"},
|
| 1203 |
+
{"name": "openTrunk", "return_type": "void", "visibility": "+"},
|
| 1204 |
+
{"name": "getDoors", "return_type": "int", "visibility": "+"},
|
| 1205 |
+
{"name": "setTransmission", "parameters": [{"name": "transmission", "type": "TransmissionType"}], "return_type": "void", "visibility": "+"}
|
| 1206 |
+
]
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"name": "Motorcycle",
|
| 1210 |
+
"type": "class",
|
| 1211 |
+
"attributes": [
|
| 1212 |
+
{"name": "engineSize", "type": "int", "visibility": "-"},
|
| 1213 |
+
{"name": "hasWindshield", "type": "boolean", "visibility": "-"}
|
| 1214 |
+
],
|
| 1215 |
+
"methods": [
|
| 1216 |
+
{"name": "Motorcycle", "parameters": [{"name": "brand", "type": "String"}, {"name": "model", "type": "String"}], "return_type": "Motorcycle", "visibility": "+"},
|
| 1217 |
+
{"name": "startEngine", "return_type": "void", "visibility": "+"},
|
| 1218 |
+
{"name": "wheelie", "return_type": "void", "visibility": "+"},
|
| 1219 |
+
{"name": "getEngineSize", "return_type": "int", "visibility": "+"}
|
| 1220 |
+
]
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"name": "Engine",
|
| 1224 |
+
"type": "class",
|
| 1225 |
+
"attributes": [
|
| 1226 |
+
{"name": "horsepower", "type": "int", "visibility": "-"},
|
| 1227 |
+
{"name": "cylinders", "type": "int", "visibility": "-"},
|
| 1228 |
+
{"name": "fuelType", "type": "FuelType", "visibility": "-"}
|
| 1229 |
+
],
|
| 1230 |
+
"methods": [
|
| 1231 |
+
{"name": "Engine", "parameters": [{"name": "horsepower", "type": "int"}, {"name": "cylinders", "type": "int"}], "return_type": "Engine", "visibility": "+"},
|
| 1232 |
+
{"name": "start", "return_type": "boolean", "visibility": "+"},
|
| 1233 |
+
{"name": "stop", "return_type": "void", "visibility": "+"},
|
| 1234 |
+
{"name": "getHorsepower", "return_type": "int", "visibility": "+"}
|
| 1235 |
+
]
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"name": "TransmissionType",
|
| 1239 |
+
"type": "enum",
|
| 1240 |
+
"attributes": [
|
| 1241 |
+
{"name": "MANUAL", "type": "TransmissionType", "visibility": "+", "static": true},
|
| 1242 |
+
{"name": "AUTOMATIC", "type": "TransmissionType", "visibility": "+", "static": true},
|
| 1243 |
+
{"name": "CVT", "type": "TransmissionType", "visibility": "+", "static": true}
|
| 1244 |
+
],
|
| 1245 |
+
"methods": []
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"name": "FuelType",
|
| 1249 |
+
"type": "enum",
|
| 1250 |
+
"attributes": [
|
| 1251 |
+
{"name": "GASOLINE", "type": "FuelType", "visibility": "+", "static": true},
|
| 1252 |
+
{"name": "DIESEL", "type": "FuelType", "visibility": "+", "static": true},
|
| 1253 |
+
{"name": "ELECTRIC", "type": "FuelType", "visibility": "+", "static": true},
|
| 1254 |
+
{"name": "HYBRID", "type": "FuelType", "visibility": "+", "static": true}
|
| 1255 |
+
],
|
| 1256 |
+
"methods": []
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"name": "VehicleService",
|
| 1260 |
+
"type": "interface",
|
| 1261 |
+
"attributes": [],
|
| 1262 |
+
"methods": [
|
| 1263 |
+
{"name": "maintenance", "parameters": [{"name": "vehicle", "type": "Vehicle"}], "return_type": "void", "visibility": "+", "abstract": true},
|
| 1264 |
+
{"name": "repair", "parameters": [{"name": "vehicle", "type": "Vehicle"}, {"name": "issue", "type": "String"}], "return_type": "boolean", "visibility": "+", "abstract": true},
|
| 1265 |
+
{"name": "inspectVehicle", "parameters": [{"name": "vehicle", "type": "Vehicle"}], "return_type": "InspectionReport", "visibility": "+", "abstract": true}
|
| 1266 |
+
]
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"name": "GarageService",
|
| 1270 |
+
"type": "class",
|
| 1271 |
+
"attributes": [
|
| 1272 |
+
{"name": "garageName", "type": "String", "visibility": "-"},
|
| 1273 |
+
{"name": "location", "type": "String", "visibility": "-"}
|
| 1274 |
+
],
|
| 1275 |
+
"methods": [
|
| 1276 |
+
{"name": "GarageService", "parameters": [{"name": "name", "type": "String"}], "return_type": "GarageService", "visibility": "+"},
|
| 1277 |
+
{"name": "maintenance", "parameters": [{"name": "vehicle", "type": "Vehicle"}], "return_type": "void", "visibility": "+"},
|
| 1278 |
+
{"name": "repair", "parameters": [{"name": "vehicle", "type": "Vehicle"}, {"name": "issue", "type": "String"}], "return_type": "boolean", "visibility": "+"},
|
| 1279 |
+
{"name": "inspectVehicle", "parameters": [{"name": "vehicle", "type": "Vehicle"}], "return_type": "InspectionReport", "visibility": "+"}
|
| 1280 |
+
]
|
| 1281 |
+
}
|
| 1282 |
+
],
|
| 1283 |
+
"relationships": [
|
| 1284 |
+
{
|
| 1285 |
+
"from": "Car",
|
| 1286 |
+
"to": "Vehicle",
|
| 1287 |
+
"type": "inheritance",
|
| 1288 |
+
"label": "extends"
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"from": "Motorcycle",
|
| 1292 |
+
"to": "Vehicle",
|
| 1293 |
+
"type": "inheritance",
|
| 1294 |
+
"label": "extends"
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"from": "Car",
|
| 1298 |
+
"to": "Engine",
|
| 1299 |
+
"type": "composition",
|
| 1300 |
+
"label": "has",
|
| 1301 |
+
"multiplicity_from": "1",
|
| 1302 |
+
"multiplicity_to": "1"
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"from": "Motorcycle",
|
| 1306 |
+
"to": "Engine",
|
| 1307 |
+
"type": "composition",
|
| 1308 |
+
"label": "has",
|
| 1309 |
+
"multiplicity_from": "1",
|
| 1310 |
+
"multiplicity_to": "1"
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"from": "Car",
|
| 1314 |
+
"to": "TransmissionType",
|
| 1315 |
+
"type": "association",
|
| 1316 |
+
"label": "uses",
|
| 1317 |
+
"multiplicity_from": "1",
|
| 1318 |
+
"multiplicity_to": "1"
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"from": "Vehicle",
|
| 1322 |
+
"to": "FuelType",
|
| 1323 |
+
"type": "association",
|
| 1324 |
+
"label": "uses",
|
| 1325 |
+
"multiplicity_from": "1",
|
| 1326 |
+
"multiplicity_to": "1"
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"from": "GarageService",
|
| 1330 |
+
"to": "VehicleService",
|
| 1331 |
+
"type": "realization",
|
| 1332 |
+
"label": "implements"
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"from": "GarageService",
|
| 1336 |
+
"to": "Vehicle",
|
| 1337 |
+
"type": "dependency",
|
| 1338 |
+
"label": "services",
|
| 1339 |
+
"multiplicity_from": "1",
|
| 1340 |
+
"multiplicity_to": "*"
|
| 1341 |
+
}
|
| 1342 |
+
]
|
| 1343 |
+
}
|
| 1344 |
+
"""
|
| 1345 |
+
|
| 1346 |
+
# JSON for Entity Relationship Diagram
|
| 1347 |
+
ENTITY_RELATIONSHIP_JSON = """
|
| 1348 |
+
{
|
| 1349 |
+
"entities": [
|
| 1350 |
+
{
|
| 1351 |
+
"name": "Customer",
|
| 1352 |
+
"type": "strong",
|
| 1353 |
+
"attributes": [
|
| 1354 |
+
{"name": "customer_id", "type": "primary_key"},
|
| 1355 |
+
{"name": "first_name", "type": "regular"},
|
| 1356 |
+
{"name": "last_name", "type": "regular"},
|
| 1357 |
+
{"name": "email", "type": "regular"},
|
| 1358 |
+
{"name": "phone", "type": "multivalued", "multivalued": true},
|
| 1359 |
+
{"name": "age", "type": "derived", "derived": true},
|
| 1360 |
+
{"name": "address", "type": "composite", "composite": true}
|
| 1361 |
+
]
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"name": "Order",
|
| 1365 |
+
"type": "strong",
|
| 1366 |
+
"attributes": [
|
| 1367 |
+
{"name": "order_id", "type": "primary_key"},
|
| 1368 |
+
{"name": "customer_id", "type": "foreign_key"},
|
| 1369 |
+
{"name": "order_date", "type": "regular"},
|
| 1370 |
+
{"name": "total_amount", "type": "regular"},
|
| 1371 |
+
{"name": "status", "type": "regular"},
|
| 1372 |
+
{"name": "shipping_address", "type": "composite", "composite": true}
|
| 1373 |
+
]
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"name": "Product",
|
| 1377 |
+
"type": "strong",
|
| 1378 |
+
"attributes": [
|
| 1379 |
+
{"name": "product_id", "type": "primary_key"},
|
| 1380 |
+
{"name": "name", "type": "regular"},
|
| 1381 |
+
{"name": "description", "type": "regular"},
|
| 1382 |
+
{"name": "price", "type": "regular"},
|
| 1383 |
+
{"name": "category_id", "type": "foreign_key"},
|
| 1384 |
+
{"name": "stock_quantity", "type": "regular"}
|
| 1385 |
+
]
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"name": "Category",
|
| 1389 |
+
"type": "strong",
|
| 1390 |
+
"attributes": [
|
| 1391 |
+
{"name": "category_id", "type": "primary_key"},
|
| 1392 |
+
{"name": "name", "type": "regular"},
|
| 1393 |
+
{"name": "description", "type": "regular"},
|
| 1394 |
+
{"name": "parent_category_id", "type": "foreign_key"}
|
| 1395 |
+
]
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"name": "OrderItem",
|
| 1399 |
+
"type": "weak",
|
| 1400 |
+
"attributes": [
|
| 1401 |
+
{"name": "order_id", "type": "primary_key"},
|
| 1402 |
+
{"name": "product_id", "type": "primary_key"},
|
| 1403 |
+
{"name": "quantity", "type": "regular"},
|
| 1404 |
+
{"name": "unit_price", "type": "regular"},
|
| 1405 |
+
{"name": "discount", "type": "regular"}
|
| 1406 |
+
]
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"name": "Payment",
|
| 1410 |
+
"type": "strong",
|
| 1411 |
+
"attributes": [
|
| 1412 |
+
{"name": "payment_id", "type": "primary_key"},
|
| 1413 |
+
{"name": "order_id", "type": "foreign_key"},
|
| 1414 |
+
{"name": "payment_method", "type": "regular"},
|
| 1415 |
+
{"name": "amount", "type": "regular"},
|
| 1416 |
+
{"name": "payment_date", "type": "regular"},
|
| 1417 |
+
{"name": "transaction_id", "type": "regular"}
|
| 1418 |
+
]
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"name": "Supplier",
|
| 1422 |
+
"type": "strong",
|
| 1423 |
+
"attributes": [
|
| 1424 |
+
{"name": "supplier_id", "type": "primary_key"},
|
| 1425 |
+
{"name": "company_name", "type": "regular"},
|
| 1426 |
+
{"name": "contact_person", "type": "regular"},
|
| 1427 |
+
{"name": "email", "type": "regular"},
|
| 1428 |
+
{"name": "phone", "type": "multivalued", "multivalued": true},
|
| 1429 |
+
{"name": "address", "type": "composite", "composite": true}
|
| 1430 |
+
]
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"name": "Review",
|
| 1434 |
+
"type": "weak",
|
| 1435 |
+
"attributes": [
|
| 1436 |
+
{"name": "customer_id", "type": "primary_key"},
|
| 1437 |
+
{"name": "product_id", "type": "primary_key"},
|
| 1438 |
+
{"name": "rating", "type": "regular"},
|
| 1439 |
+
{"name": "comment", "type": "regular"},
|
| 1440 |
+
{"name": "review_date", "type": "regular"}
|
| 1441 |
+
]
|
| 1442 |
+
}
|
| 1443 |
+
],
|
| 1444 |
+
"relationships": [
|
| 1445 |
+
{
|
| 1446 |
+
"name": "Places",
|
| 1447 |
+
"type": "regular",
|
| 1448 |
+
"entities": ["Customer", "Order"],
|
| 1449 |
+
"cardinalities": {
|
| 1450 |
+
"Customer": "1",
|
| 1451 |
+
"Order": "N"
|
| 1452 |
+
}
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"name": "Contains",
|
| 1456 |
+
"type": "identifying",
|
| 1457 |
+
"entities": ["Order", "OrderItem"],
|
| 1458 |
+
"cardinalities": {
|
| 1459 |
+
"Order": "1",
|
| 1460 |
+
"OrderItem": "N"
|
| 1461 |
+
}
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"name": "Includes",
|
| 1465 |
+
"type": "regular",
|
| 1466 |
+
"entities": ["OrderItem", "Product"],
|
| 1467 |
+
"cardinalities": {
|
| 1468 |
+
"OrderItem": "N",
|
| 1469 |
+
"Product": "1"
|
| 1470 |
+
}
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"name": "BelongsTo",
|
| 1474 |
+
"type": "regular",
|
| 1475 |
+
"entities": ["Product", "Category"],
|
| 1476 |
+
"cardinalities": {
|
| 1477 |
+
"Product": "N",
|
| 1478 |
+
"Category": "1"
|
| 1479 |
+
}
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"name": "ProcessedBy",
|
| 1483 |
+
"type": "regular",
|
| 1484 |
+
"entities": ["Order", "Payment"],
|
| 1485 |
+
"cardinalities": {
|
| 1486 |
+
"Order": "1",
|
| 1487 |
+
"Payment": "1"
|
| 1488 |
+
}
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"name": "Supplies",
|
| 1492 |
+
"type": "regular",
|
| 1493 |
+
"entities": ["Supplier", "Product"],
|
| 1494 |
+
"cardinalities": {
|
| 1495 |
+
"Supplier": "N",
|
| 1496 |
+
"Product": "M"
|
| 1497 |
+
}
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"name": "Writes",
|
| 1501 |
+
"type": "weak",
|
| 1502 |
+
"entities": ["Customer", "Review"],
|
| 1503 |
+
"cardinalities": {
|
| 1504 |
+
"Customer": "1",
|
| 1505 |
+
"Review": "N"
|
| 1506 |
+
}
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"name": "ReviewsProduct",
|
| 1510 |
+
"type": "weak",
|
| 1511 |
+
"entities": ["Review", "Product"],
|
| 1512 |
+
"cardinalities": {
|
| 1513 |
+
"Review": "N",
|
| 1514 |
+
"Product": "1"
|
| 1515 |
+
}
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"name": "Subcategory",
|
| 1519 |
+
"type": "regular",
|
| 1520 |
+
"entities": ["Category", "Category"],
|
| 1521 |
+
"cardinalities": {
|
| 1522 |
+
"Category": "1",
|
| 1523 |
+
"Category": "N"
|
| 1524 |
+
}
|
| 1525 |
+
}
|
| 1526 |
+
]
|
| 1527 |
+
}
|
| 1528 |
"""
|