{
  "schemaVersion": 4,
  "id": "project_2b2a2fee-16d1-4eef-8e3c-d7a4ffc9cc5f",
  "name": "E-commerce Starter",
  "dialect": "mysql",
  "logicalModel": {
    "entities": [
      {
        "id": "entity_0a99d0f1-ca52-45d1-970a-821c82c17fb1",
        "logicalName": "Customer",
        "description": "Customer",
        "x": 0,
        "y": 15,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_2133b999-231e-401b-8607-b643a59f03ef",
            "logicalName": "Customer Id",
            "description": "Customer Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_36397b23-ab4b-471c-badb-b3da9791fe93",
            "logicalName": "Email",
            "description": "Email",
            "dataType": "varchar(255)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true,
            "domain": "Email"
          },
          {
            "id": "attribute_a9aa27af-5d9d-4486-bd72-a2dca1489aae",
            "logicalName": "Full Name",
            "description": "Full Name",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_3089d45f-3720-498b-ab66-f14a12b76e3f",
            "logicalName": "Phone",
            "description": "Phone",
            "dataType": "VARCHAR(40)",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_3a2a038b-80da-46eb-8c30-578ede865d1e",
            "logicalName": "Created At",
            "description": "Created At",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_b291ef1e-3eb7-4191-a67a-aecf423905ef",
        "logicalName": "Category",
        "description": "Category",
        "x": 0,
        "y": 381,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_28c6d5fa-94c8-411d-8b60-7afddb6f1167",
            "logicalName": "Category Id",
            "description": "Category Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_b669d786-3348-49f2-a9ce-4b00549c9eb6",
            "logicalName": "Category Name",
            "description": "Category Name",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_595ee21b-149b-4216-baad-5fea66f10e55",
            "logicalName": "Category Slug",
            "description": "Category Slug",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true
          }
        ]
      },
      {
        "id": "entity_0a337ac3-efd1-4c9c-85d4-6977c8faa5b3",
        "logicalName": "Product",
        "description": "Product",
        "x": 540,
        "y": 330,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_2840020e-f625-42ec-84d3-41fd781338ff",
            "logicalName": "Product Id",
            "description": "Product Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_c425f79a-c2a8-44ad-bd2e-6647eac2efa2",
            "logicalName": "Category Id",
            "description": "Category Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_6da4c682-fc67-40ae-a502-0638078bebcf",
            "referencesEntityId": "entity_b291ef1e-3eb7-4191-a67a-aecf423905ef",
            "referencesAttributeId": "attribute_28c6d5fa-94c8-411d-8b60-7afddb6f1167",
            "unique": false
          },
          {
            "id": "attribute_7805ba24-d770-4d3c-8ce4-c14387fa0a9c",
            "logicalName": "Product Name",
            "description": "Product Name",
            "dataType": "VARCHAR(200)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_270c0000-619c-4bad-a14a-c12c96642abb",
            "logicalName": "Unit Price",
            "description": "Unit Price",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Money"
          },
          {
            "id": "attribute_f47ae028-cd33-40b3-a05a-d21232ed96d1",
            "logicalName": "Stock Quantity",
            "description": "Stock Quantity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_d7fce3fd-9965-4aba-9324-5b95cf5e6e43",
            "logicalName": "Is Active",
            "description": "Is Active",
            "dataType": "BOOLEAN",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
        "logicalName": "Order",
        "description": "Order",
        "x": 540,
        "y": 15,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_49f167e8-7aee-4bbb-b9ac-463b70b4c52a",
            "logicalName": "Order Id",
            "description": "Order Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_853a03db-62fc-4690-b2c4-44d5cfb90404",
            "logicalName": "Customer Id",
            "description": "Customer Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_c5e70f42-1755-4107-8ceb-ccdf59a928a3",
            "referencesEntityId": "entity_0a99d0f1-ca52-45d1-970a-821c82c17fb1",
            "referencesAttributeId": "attribute_2133b999-231e-401b-8607-b643a59f03ef",
            "unique": false
          },
          {
            "id": "attribute_8dc75503-60c8-455e-8d0c-cf68e211e1b6",
            "logicalName": "Order Status",
            "description": "Order Status",
            "dataType": "varchar(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Status Code"
          },
          {
            "id": "attribute_42498b48-d5dd-4641-b6da-daa5a818cefb",
            "logicalName": "Ordered At",
            "description": "Ordered At",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_67466140-23ff-4191-8f7a-7a4cda247bb7",
            "logicalName": "Ship Address",
            "description": "Ship Address",
            "dataType": "VARCHAR(300)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_1143c651-e0a0-4ce5-adad-753939c7a17b",
        "logicalName": "Order Item",
        "description": "Order Item",
        "x": 1080,
        "y": 332,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_a86dab9a-48fd-48a0-87c6-9ccbe3fbd866",
            "logicalName": "Order Item Id",
            "description": "Order Item Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_b1773a35-c23e-40ca-8d53-01d966066483",
            "logicalName": "Order Id",
            "description": "Order Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_f0db23e6-65a1-4386-a569-8f0ac0bd7082",
            "referencesEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
            "referencesAttributeId": "attribute_49f167e8-7aee-4bbb-b9ac-463b70b4c52a",
            "unique": false
          },
          {
            "id": "attribute_55e343f5-cafe-4e61-958f-22ef7a6e9e28",
            "logicalName": "Product Id",
            "description": "Product Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_ea75e4f3-5eec-4b3b-847c-3d9d77d61007",
            "referencesEntityId": "entity_0a337ac3-efd1-4c9c-85d4-6977c8faa5b3",
            "referencesAttributeId": "attribute_2840020e-f625-42ec-84d3-41fd781338ff",
            "unique": false
          },
          {
            "id": "attribute_6618882c-1ff8-41bb-b7a2-d62750553a14",
            "logicalName": "Quantity",
            "description": "Quantity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_7d3500e9-a00b-40f6-808e-9e6410574619",
            "logicalName": "Item Price",
            "description": "Item Price",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Money"
          }
        ]
      },
      {
        "id": "entity_bd9c7c8c-30ab-498d-a767-a67980b3c167",
        "logicalName": "Payment",
        "description": "Payment",
        "x": 1080,
        "y": 0,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_ef4ee814-8225-43e8-a326-dd13d64edd31",
            "logicalName": "Payment Id",
            "description": "Payment Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_a51103bb-e162-44ad-be2b-52a2bb8a456f",
            "logicalName": "Order Id",
            "description": "Order Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_06886b15-4e92-4dc2-b26c-ec476407957d",
            "referencesEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
            "referencesAttributeId": "attribute_49f167e8-7aee-4bbb-b9ac-463b70b4c52a",
            "unique": false
          },
          {
            "id": "attribute_9525dfe9-bba9-46fd-93e5-34972faebc09",
            "logicalName": "Payment Method",
            "description": "Payment Method",
            "dataType": "VARCHAR(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_542669bf-20c6-45bf-8ffc-dd470ecd347a",
            "logicalName": "Payment Amount",
            "description": "Payment Amount",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Money"
          },
          {
            "id": "attribute_824db3e7-1fda-4619-97d0-3383c7627129",
            "logicalName": "Paid At",
            "description": "Paid At",
            "dataType": "TIMESTAMP",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      }
    ],
    "relationships": [
      {
        "id": "relationship_6da4c682-fc67-40ae-a502-0638078bebcf",
        "sourceEntityId": "entity_b291ef1e-3eb7-4191-a67a-aecf423905ef",
        "targetEntityId": "entity_0a337ac3-efd1-4c9c-85d4-6977c8faa5b3",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "restrict",
        "constraintName": "fk_products_category"
      },
      {
        "id": "relationship_c5e70f42-1755-4107-8ceb-ccdf59a928a3",
        "sourceEntityId": "entity_0a99d0f1-ca52-45d1-970a-821c82c17fb1",
        "targetEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "restrict",
        "constraintName": "fk_orders_customer"
      },
      {
        "id": "relationship_f0db23e6-65a1-4386-a569-8f0ac0bd7082",
        "sourceEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
        "targetEntityId": "entity_1143c651-e0a0-4ce5-adad-753939c7a17b",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "cascade",
        "constraintName": "fk_order_items_order"
      },
      {
        "id": "relationship_ea75e4f3-5eec-4b3b-847c-3d9d77d61007",
        "sourceEntityId": "entity_0a337ac3-efd1-4c9c-85d4-6977c8faa5b3",
        "targetEntityId": "entity_1143c651-e0a0-4ce5-adad-753939c7a17b",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "restrict",
        "constraintName": "fk_order_items_product"
      },
      {
        "id": "relationship_06886b15-4e92-4dc2-b26c-ec476407957d",
        "sourceEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
        "targetEntityId": "entity_bd9c7c8c-30ab-498d-a767-a67980b3c167",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "cascade",
        "constraintName": "fk_payments_order"
      }
    ]
  },
  "physicalModel": {
    "tables": [
      {
        "id": "table_9ad0a9b8-6e3f-4022-9d95-59f0bbbbea50",
        "logicalEntityId": "entity_0a99d0f1-ca52-45d1-970a-821c82c17fb1",
        "physicalName": "customers",
        "comment": "Customer",
        "x": 0,
        "y": 15,
        "width": 360,
        "columns": [
          {
            "id": "column_2815bed6-3a60-4257-b3e8-0c7e27cc2b49",
            "logicalAttributeId": "attribute_2133b999-231e-401b-8607-b643a59f03ef",
            "physicalName": "customer_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Customer Id",
            "manualOverride": true
          },
          {
            "id": "column_45405a69-9e07-4749-8710-ae620e370abe",
            "logicalAttributeId": "attribute_36397b23-ab4b-471c-badb-b3da9791fe93",
            "physicalName": "email",
            "dataType": "varchar(255)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Email",
            "manualOverride": true
          },
          {
            "id": "column_cc27fe60-116e-4ba5-9c5c-670dc5e597f8",
            "logicalAttributeId": "attribute_a9aa27af-5d9d-4486-bd72-a2dca1489aae",
            "physicalName": "full_name",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Full Name",
            "manualOverride": true
          },
          {
            "id": "column_085723b3-2987-44bd-a9d4-7ac9af1a0ccf",
            "logicalAttributeId": "attribute_3089d45f-3720-498b-ab66-f14a12b76e3f",
            "physicalName": "phone",
            "dataType": "VARCHAR(40)",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Phone",
            "manualOverride": true
          },
          {
            "id": "column_62b41b22-59f2-430d-9ac4-f0d63dc043aa",
            "logicalAttributeId": "attribute_3a2a038b-80da-46eb-8c30-578ede865d1e",
            "physicalName": "created_at",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Created At",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      },
      {
        "id": "table_e620e45e-32a7-4b13-8a15-ab11dde31717",
        "logicalEntityId": "entity_b291ef1e-3eb7-4191-a67a-aecf423905ef",
        "physicalName": "categories",
        "comment": "Category",
        "x": 0,
        "y": 381,
        "width": 360,
        "columns": [
          {
            "id": "column_66daac37-f7bf-472c-8836-c645f8c43699",
            "logicalAttributeId": "attribute_28c6d5fa-94c8-411d-8b60-7afddb6f1167",
            "physicalName": "category_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Category Id",
            "manualOverride": true
          },
          {
            "id": "column_2f85e6b2-af12-4e0b-8a2b-ed6f949ebd50",
            "logicalAttributeId": "attribute_b669d786-3348-49f2-a9ce-4b00549c9eb6",
            "physicalName": "category_name",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Category Name",
            "manualOverride": true
          },
          {
            "id": "column_c00bb204-54e5-42fc-bc82-0cf2a806b6b4",
            "logicalAttributeId": "attribute_595ee21b-149b-4216-baad-5fea66f10e55",
            "physicalName": "category_slug",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Category Slug",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      },
      {
        "id": "table_089261c5-5b30-4c03-8b82-854f1be5333c",
        "logicalEntityId": "entity_0a337ac3-efd1-4c9c-85d4-6977c8faa5b3",
        "physicalName": "products",
        "comment": "Product",
        "x": 540,
        "y": 330,
        "width": 360,
        "columns": [
          {
            "id": "column_fc173e0f-e33e-452a-96f7-93605e0d00c6",
            "logicalAttributeId": "attribute_2840020e-f625-42ec-84d3-41fd781338ff",
            "physicalName": "product_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Product Id",
            "manualOverride": true
          },
          {
            "id": "column_d284017f-a51a-4631-879f-931561902e01",
            "logicalAttributeId": "attribute_c425f79a-c2a8-44ad-bd2e-6647eac2efa2",
            "physicalName": "category_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Category Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_6da4c682-fc67-40ae-a502-0638078bebcf",
            "referencesTableId": "table_e620e45e-32a7-4b13-8a15-ab11dde31717",
            "referencesColumnId": "column_66daac37-f7bf-472c-8836-c645f8c43699"
          },
          {
            "id": "column_94e25f57-4826-4dbd-ae28-b7cab0523bab",
            "logicalAttributeId": "attribute_7805ba24-d770-4d3c-8ce4-c14387fa0a9c",
            "physicalName": "product_name",
            "dataType": "VARCHAR(200)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Product Name",
            "manualOverride": true
          },
          {
            "id": "column_aa55906a-0bfe-401e-aefa-0e39d39da748",
            "logicalAttributeId": "attribute_270c0000-619c-4bad-a14a-c12c96642abb",
            "physicalName": "unit_price",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Unit Price",
            "manualOverride": true
          },
          {
            "id": "column_02208d12-4e43-4e3d-9b74-f06dfde542da",
            "logicalAttributeId": "attribute_f47ae028-cd33-40b3-a05a-d21232ed96d1",
            "physicalName": "stock_quantity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Stock Quantity",
            "manualOverride": true
          },
          {
            "id": "column_1009fa40-1e5d-4d73-832f-430523f3f5fe",
            "logicalAttributeId": "attribute_d7fce3fd-9965-4aba-9324-5b95cf5e6e43",
            "physicalName": "is_active",
            "dataType": "BOOLEAN",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Is Active",
            "manualOverride": true
          }
        ],
        "indexes": [
          {
            "id": "index_c2aa50a1-1ea8-435a-abc5-d923aa418100",
            "name": "idx_products_category",
            "unique": false,
            "columnIds": [
              "column_d284017f-a51a-4631-879f-931561902e01"
            ]
          }
        ],
        "manualOverride": true
      },
      {
        "id": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
        "logicalEntityId": "entity_b598548a-be77-41a6-9cf0-c32b25126fc0",
        "physicalName": "orders",
        "comment": "Order",
        "x": 540,
        "y": 15,
        "width": 360,
        "columns": [
          {
            "id": "column_acb1c654-ef84-490f-85df-dee4fc8adecc",
            "logicalAttributeId": "attribute_49f167e8-7aee-4bbb-b9ac-463b70b4c52a",
            "physicalName": "order_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Order Id",
            "manualOverride": true
          },
          {
            "id": "column_ced99b42-e418-424e-80f3-914459d6292a",
            "logicalAttributeId": "attribute_853a03db-62fc-4690-b2c4-44d5cfb90404",
            "physicalName": "customer_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Customer Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_c5e70f42-1755-4107-8ceb-ccdf59a928a3",
            "referencesTableId": "table_9ad0a9b8-6e3f-4022-9d95-59f0bbbbea50",
            "referencesColumnId": "column_2815bed6-3a60-4257-b3e8-0c7e27cc2b49"
          },
          {
            "id": "column_118fe01e-e4a4-4749-88bd-bca485405ad4",
            "logicalAttributeId": "attribute_8dc75503-60c8-455e-8d0c-cf68e211e1b6",
            "physicalName": "order_status",
            "dataType": "varchar(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Order Status",
            "manualOverride": true
          },
          {
            "id": "column_efdc57ac-9189-4f74-aae7-cc2fbeca35bc",
            "logicalAttributeId": "attribute_42498b48-d5dd-4641-b6da-daa5a818cefb",
            "physicalName": "ordered_at",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Ordered At",
            "manualOverride": true
          },
          {
            "id": "column_7385e0d6-c766-4340-8dd3-ead2548adeea",
            "logicalAttributeId": "attribute_67466140-23ff-4191-8f7a-7a4cda247bb7",
            "physicalName": "ship_address",
            "dataType": "VARCHAR(300)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Ship Address",
            "manualOverride": true
          }
        ],
        "indexes": [
          {
            "id": "index_c2f5a5b4-66e3-4293-8a55-e8ed3b2efd47",
            "name": "idx_orders_customer",
            "unique": false,
            "columnIds": [
              "column_ced99b42-e418-424e-80f3-914459d6292a"
            ]
          }
        ],
        "manualOverride": true
      },
      {
        "id": "table_ccf1a065-6dcf-4afa-9555-39fe7b98b2ec",
        "logicalEntityId": "entity_1143c651-e0a0-4ce5-adad-753939c7a17b",
        "physicalName": "order_items",
        "comment": "Order Item",
        "x": 1080,
        "y": 332,
        "width": 360,
        "columns": [
          {
            "id": "column_b7eb86db-9a57-41df-b429-947018ff7f4f",
            "logicalAttributeId": "attribute_a86dab9a-48fd-48a0-87c6-9ccbe3fbd866",
            "physicalName": "order_item_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Order Item Id",
            "manualOverride": true
          },
          {
            "id": "column_baeefa16-931d-4bd5-abc3-0a5bbf650a02",
            "logicalAttributeId": "attribute_b1773a35-c23e-40ca-8d53-01d966066483",
            "physicalName": "order_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Order Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_f0db23e6-65a1-4386-a569-8f0ac0bd7082",
            "referencesTableId": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
            "referencesColumnId": "column_acb1c654-ef84-490f-85df-dee4fc8adecc"
          },
          {
            "id": "column_f04db63c-df78-4d7e-8e5c-b48f5703f1c7",
            "logicalAttributeId": "attribute_55e343f5-cafe-4e61-958f-22ef7a6e9e28",
            "physicalName": "product_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Product Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_ea75e4f3-5eec-4b3b-847c-3d9d77d61007",
            "referencesTableId": "table_089261c5-5b30-4c03-8b82-854f1be5333c",
            "referencesColumnId": "column_fc173e0f-e33e-452a-96f7-93605e0d00c6"
          },
          {
            "id": "column_d6bdad99-0e38-43d9-a0a2-e2d7fb457ce3",
            "logicalAttributeId": "attribute_6618882c-1ff8-41bb-b7a2-d62750553a14",
            "physicalName": "quantity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Quantity",
            "manualOverride": true
          },
          {
            "id": "column_5972b1a2-c0d2-4f56-94f6-6c6f24d2f53d",
            "logicalAttributeId": "attribute_7d3500e9-a00b-40f6-808e-9e6410574619",
            "physicalName": "item_price",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Item Price",
            "manualOverride": true
          }
        ],
        "indexes": [
          {
            "id": "index_4e097815-9451-4e55-98e8-9a88e42016a9",
            "name": "idx_order_items_order",
            "unique": false,
            "columnIds": [
              "column_baeefa16-931d-4bd5-abc3-0a5bbf650a02"
            ]
          }
        ],
        "manualOverride": true
      },
      {
        "id": "table_827b93ac-76fe-4ec5-a7ed-557a9fda539f",
        "logicalEntityId": "entity_bd9c7c8c-30ab-498d-a767-a67980b3c167",
        "physicalName": "payments",
        "comment": "Payment",
        "x": 1080,
        "y": 0,
        "width": 360,
        "columns": [
          {
            "id": "column_13eafaad-2f50-4c2d-8d11-1eb261f8b796",
            "logicalAttributeId": "attribute_ef4ee814-8225-43e8-a326-dd13d64edd31",
            "physicalName": "payment_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Payment Id",
            "manualOverride": true
          },
          {
            "id": "column_4931c8ef-14a6-41ee-bb3b-ac3ce896c2d0",
            "logicalAttributeId": "attribute_a51103bb-e162-44ad-be2b-52a2bb8a456f",
            "physicalName": "order_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Order Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_06886b15-4e92-4dc2-b26c-ec476407957d",
            "referencesTableId": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
            "referencesColumnId": "column_acb1c654-ef84-490f-85df-dee4fc8adecc"
          },
          {
            "id": "column_20a866c8-dcc1-44d5-9e70-5ff35edd452b",
            "logicalAttributeId": "attribute_9525dfe9-bba9-46fd-93e5-34972faebc09",
            "physicalName": "payment_method",
            "dataType": "VARCHAR(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Payment Method",
            "manualOverride": true
          },
          {
            "id": "column_5ca8bb9b-5cde-4f45-8859-c8999b5808a9",
            "logicalAttributeId": "attribute_542669bf-20c6-45bf-8ffc-dd470ecd347a",
            "physicalName": "payment_amount",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Payment Amount",
            "manualOverride": true
          },
          {
            "id": "column_7fd1b7ba-fb18-4db5-90c9-f5dc9472afdf",
            "logicalAttributeId": "attribute_824db3e7-1fda-4619-97d0-3383c7627129",
            "physicalName": "paid_at",
            "dataType": "TIMESTAMP",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Paid At",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      }
    ],
    "relationships": [
      {
        "id": "physicalRelationship_303afaf2-92b6-414d-b464-e46c93cd8461",
        "logicalRelationshipId": "relationship_6da4c682-fc67-40ae-a502-0638078bebcf",
        "sourceTableId": "table_e620e45e-32a7-4b13-8a15-ab11dde31717",
        "targetTableId": "table_089261c5-5b30-4c03-8b82-854f1be5333c",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_2dda8427-892d-4435-90b7-4d2d8d132db7",
        "logicalRelationshipId": "relationship_c5e70f42-1755-4107-8ceb-ccdf59a928a3",
        "sourceTableId": "table_9ad0a9b8-6e3f-4022-9d95-59f0bbbbea50",
        "targetTableId": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_ac9fd285-fd78-4f10-a40c-e3068d1d6fc3",
        "logicalRelationshipId": "relationship_f0db23e6-65a1-4386-a569-8f0ac0bd7082",
        "sourceTableId": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
        "targetTableId": "table_ccf1a065-6dcf-4afa-9555-39fe7b98b2ec",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_6fdb0101-74f9-4537-aa83-479d13241e12",
        "logicalRelationshipId": "relationship_ea75e4f3-5eec-4b3b-847c-3d9d77d61007",
        "sourceTableId": "table_089261c5-5b30-4c03-8b82-854f1be5333c",
        "targetTableId": "table_ccf1a065-6dcf-4afa-9555-39fe7b98b2ec",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_76b340a5-807d-4dd8-8584-e1ae7d76e09e",
        "logicalRelationshipId": "relationship_06886b15-4e92-4dc2-b26c-ec476407957d",
        "sourceTableId": "table_d4903b89-6057-43ea-826d-08e23e1a87cb",
        "targetTableId": "table_827b93ac-76fe-4ec5-a7ed-557a9fda539f",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      }
    ]
  },
  "wordDictionary": {
    "entries": [
      {
        "id": "word_150401d3-64ee-45fa-8f5f-ac88e43b362f",
        "logicalWord": "Active",
        "physicalWord": "ACTIVE",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_17c3e686-e3a3-489b-a399-c9caae810027",
        "logicalWord": "Address",
        "physicalWord": "ADDRESS",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_6f0bb771-b72f-40d7-bd9c-0446117efadb",
        "logicalWord": "Amount",
        "physicalWord": "AMOUNT",
        "abbreviation": "",
        "englishName": "",
        "description": "Monetary value",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_715d98b8-67b5-4fc9-9032-01052145ce1e",
        "logicalWord": "At",
        "physicalWord": "AT",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_52787b61-5228-4349-826f-12289903f38a",
        "logicalWord": "Category",
        "physicalWord": "CATEGORY",
        "abbreviation": "",
        "englishName": "",
        "description": "A grouping of related records",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_1e8f508f-de7f-4254-b1c7-b1469969695e",
        "logicalWord": "Created",
        "physicalWord": "CREATED",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_940bde49-436d-440e-80f3-c2fbfd807a1d",
        "logicalWord": "Customer",
        "physicalWord": "CUSTOMER",
        "abbreviation": "",
        "englishName": "",
        "description": "A person or company that places orders",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_b1b36cbb-55ac-4c9c-b8ea-14a669683cbd",
        "logicalWord": "Email",
        "physicalWord": "EMAIL",
        "abbreviation": "",
        "englishName": "",
        "description": "Email address",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_0c65aba1-35d0-4945-b30e-abc0c18670c9",
        "logicalWord": "Full",
        "physicalWord": "FULL",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_8079bd67-cc4b-4455-a908-e9552ca892f4",
        "logicalWord": "Id",
        "physicalWord": "ID",
        "abbreviation": "",
        "englishName": "",
        "description": "Unique key for a record",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_d971008b-500e-4544-ad64-3ac991e057c0",
        "logicalWord": "Is",
        "physicalWord": "IS",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_a3a1ccd8-bd57-4a37-9971-ce7a4070a7d8",
        "logicalWord": "Item",
        "physicalWord": "ITEM",
        "abbreviation": "",
        "englishName": "",
        "description": "A single line within a set",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_9624dcc6-ab20-4d3b-8bd4-1e07026d5035",
        "logicalWord": "Method",
        "physicalWord": "METHOD",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_83690743-15e7-4c98-affd-a2c1612aad06",
        "logicalWord": "Name",
        "physicalWord": "NAME",
        "abbreviation": "",
        "englishName": "",
        "description": "Human-readable label",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_de1b322c-9225-44e9-b013-d3c7c1a1e3b5",
        "logicalWord": "Order",
        "physicalWord": "ORDER",
        "abbreviation": "",
        "englishName": "",
        "description": "A purchase request submitted by a customer",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_4f155552-aab7-46d2-974f-2f734abb8fda",
        "logicalWord": "Ordered",
        "physicalWord": "ORDERED",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_044bb175-85e9-404a-ad88-aff6d6b6a332",
        "logicalWord": "Paid",
        "physicalWord": "PAID",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_0fd35857-64dd-4693-9a5d-4f1c10c81169",
        "logicalWord": "Payment",
        "physicalWord": "PAYMENT",
        "abbreviation": "",
        "englishName": "",
        "description": "Money settling an order or reservation",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_aca2a864-d59e-4418-975f-9e8890c71d5a",
        "logicalWord": "Phone",
        "physicalWord": "PHONE",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_cc2eeca9-0658-4f3b-9b97-419e4311f736",
        "logicalWord": "Price",
        "physicalWord": "PRICE",
        "abbreviation": "",
        "englishName": "",
        "description": "Selling price of an item",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_45efdcec-68be-4a5b-b133-7f8c8c120f4c",
        "logicalWord": "Product",
        "physicalWord": "PRODUCT",
        "abbreviation": "",
        "englishName": "",
        "description": "An item available for sale",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_8d831173-2fbf-415b-b388-c081bc85fc26",
        "logicalWord": "Quantity",
        "physicalWord": "QUANTITY",
        "abbreviation": "",
        "englishName": "",
        "description": "Count of units",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_da6569ac-0a34-43cc-a48b-122a97b9a3f2",
        "logicalWord": "Ship",
        "physicalWord": "SHIP",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_69ab0ae7-671d-46a1-8415-a7c0df32c732",
        "logicalWord": "Slug",
        "physicalWord": "SLUG",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_4c21ed84-419a-4e01-882b-f75eb24b3791",
        "logicalWord": "Status",
        "physicalWord": "STATUS",
        "abbreviation": "",
        "englishName": "",
        "description": "Lifecycle state of a record",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_197d17ca-32ae-4c6f-b8c2-d13f4bea2125",
        "logicalWord": "Stock",
        "physicalWord": "STOCK",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_2482d4ae-3a34-48fc-ad46-64c5f9765c1b",
        "logicalWord": "Unit",
        "physicalWord": "UNIT",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      }
    ]
  },
  "domains": [
    {
      "id": "domain_af845f93-3f3c-40eb-a603-137b88058a1e",
      "name": "Email",
      "dataType": "varchar(255)",
      "description": "Email address"
    },
    {
      "id": "domain_57c1929d-915c-4051-92f2-c6320a4bc158",
      "name": "Money",
      "dataType": "decimal(12,2)",
      "description": "Monetary value"
    },
    {
      "id": "domain_87be3622-417e-4eb8-b244-cf4802120839",
      "name": "Status Code",
      "dataType": "varchar(30)",
      "description": "Lifecycle status value"
    }
  ],
  "subjectAreas": [],
  "entityReferences": [],
  "notes": [],
  "namingRules": {
    "separator": "_",
    "casing": "lower",
    "unknownWordMode": "warn"
  },
  "viewport": {
    "x": 0,
    "y": 0,
    "zoom": 1
  },
  "updatedAt": "2026-07-19T09:05:12.899Z"
}