| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- {
- "entities": [
- {
- "id": "default.inventory",
- "type": "TABLE",
- "database": "default",
- "name": "inventory",
- "columns": [
- {
- "id": "default.inventory.id",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "id"
- },
- {
- "id": "default.inventory.quantity",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "quantity"
- },
- {
- "id": "default.inventory.product_id",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "product_id"
- },
- {
- "id": "default.inventory.vendor_id",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "vendor_id"
- }
- ]
- },
- {
- "id": "market.products",
- "type": "TABLE",
- "database": "market",
- "name": "products",
- "columns": [
- {
- "id": "market.products.id",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "id"
- },
- {
- "id": "market.products.name",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "name"
- },
- {
- "id": "market.products.description",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "description"
- },
- {
- "id": "market.products.category_id",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "category_id"
- }
- ]
- },
- {
- "id": "market.vendors",
- "type": "TABLE",
- "database": "market",
- "name": "vendors",
- "columns": [
- {
- "id": "market.vendors.id",
- "type": "COLUMN",
- "tableId": "market.vendors",
- "name": "id"
- },
- {
- "id": "market.vendors.name",
- "type": "COLUMN",
- "tableId": "market.vendors",
- "name": "name"
- }
- ]
- },
- {
- "id": "market.product_categories",
- "type": "TABLE",
- "database": "market",
- "name": "product_categories",
- "columns": [
- {
- "id": "market.product_categories.id",
- "type": "COLUMN",
- "tableId": "market.product_categories",
- "name": "id"
- },
- {
- "id": "market.product_categories.name",
- "type": "COLUMN",
- "tableId": "market.product_categories",
- "name": "name"
- },
- {
- "id": "market.product_categories.description",
- "type": "COLUMN",
- "tableId": "market.product_categories",
- "name": "description"
- }
- ]
- }
- ],
- "relations": [
- {
- "desc": "Foreign Key",
- "left": {
- "id": "default.inventory.product_id",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "product_id"
- },
- "right": {
- "id": "market.products.id",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "id"
- }
- },
- {
- "desc": "Foreign Key",
- "left": {
- "id": "default.inventory.vendor_id",
- "type": "COLUMN",
- "tableId": "default.inventory",
- "name": "vendor_id"
- },
- "right": {
- "id": "market.vendors.id",
- "type": "COLUMN",
- "tableId": "market.vendors",
- "name": "id"
- }
- },
- {
- "desc": "Foreign Key",
- "left": {
- "id": "market.products.category_id",
- "type": "COLUMN",
- "tableId": "market.products",
- "name": "category_id"
- },
- "right": {
- "id": "market.product_categories.id",
- "type": "COLUMN",
- "tableId": "market.product_categories",
- "name": "id"
- }
- },
- {
- "desc": "Foreign Key",
- "left": {
- "id": "market.product_categories.name",
- "type": "COLUMN",
- "tableId": "market.product_categories",
- "name": "name"
- },
- "right": {
- "id": "Laptop",
- "type": "LITERAL",
- "value": "Laptop"
- }
- },
- {
- "desc": "Foreign Key",
- "left": {
- "id": "market.vendors.name",
- "type": "COLUMN",
- "tableId": "market.vendors",
- "name": "name"
- },
- "right": {
- "id": "Apple",
- "type": "LITERAL",
- "value": "Apple"
- }
- }
- ]
- }
|