{
  "schemaVersion": 4,
  "id": "project_01358193-101a-40ab-ac83-6568a3722a6e",
  "name": "Booking / Reservation Starter",
  "dialect": "mysql",
  "logicalModel": {
    "entities": [
      {
        "id": "entity_20457697-25c5-4ff6-bf15-4f9eaaf8a3d2",
        "logicalName": "Customer",
        "description": "Customer",
        "x": 540,
        "y": 26,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_a39d643a-0697-4d68-a8fc-cbbf9318c79c",
            "logicalName": "Customer Id",
            "description": "Customer Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_ce114f94-2cb7-4f05-b826-abf3903336e4",
            "logicalName": "Email",
            "description": "Email",
            "dataType": "varchar(255)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true,
            "domain": "Email"
          },
          {
            "id": "attribute_963a8aba-9598-496e-ad70-83cabe930559",
            "logicalName": "Full Name",
            "description": "Full Name",
            "dataType": "VARCHAR(120)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_32c43774-7359-4028-b918-178d1eed6754",
            "logicalName": "Phone",
            "description": "Phone",
            "dataType": "VARCHAR(40)",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_3bf7e1ac-6b48-4511-b23a-fa9eb5152ed8",
        "logicalName": "Venue",
        "description": "Venue",
        "x": 0,
        "y": 317,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_3161bc90-61a8-4b91-8f81-b32466e95730",
            "logicalName": "Venue Id",
            "description": "Venue Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_c96216a9-bf02-49ce-9b10-701f55717b20",
            "logicalName": "Venue Name",
            "description": "Venue Name",
            "dataType": "VARCHAR(160)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_0f6feb98-79ed-4883-b8c6-325e811c575d",
            "logicalName": "Venue Address",
            "description": "Venue Address",
            "dataType": "VARCHAR(300)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_b449cba8-a73b-48e8-abf9-d3045b53d154",
            "logicalName": "Timezone",
            "description": "Timezone",
            "dataType": "VARCHAR(60)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_3749112b-77b5-4bf4-933b-e5321fca8ea0",
        "logicalName": "Resource",
        "description": "Resource",
        "x": 540,
        "y": 300,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_0f8bbe6e-1ed4-47f8-ab11-435365f5eff4",
            "logicalName": "Resource Id",
            "description": "Resource Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_18af7c9d-331a-4224-b4fa-11017751f1da",
            "logicalName": "Venue Id",
            "description": "Venue Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "foreignKeyRelationshipId": "relationship_9ba21578-4fc1-47b3-8671-48129b254050",
            "referencesEntityId": "entity_3bf7e1ac-6b48-4511-b23a-fa9eb5152ed8",
            "referencesAttributeId": "attribute_3161bc90-61a8-4b91-8f81-b32466e95730"
          },
          {
            "id": "attribute_b739e5c6-bd92-4099-b1ae-51a150087960",
            "logicalName": "Resource Name",
            "description": "Resource Name",
            "dataType": "VARCHAR(160)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_31ecdcaf-8d32-4cff-bdb9-1a0a4429ce61",
            "logicalName": "Capacity",
            "description": "Capacity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_0260cb5a-582c-4f68-9b75-67e174823c14",
            "logicalName": "Hourly Rate",
            "description": "Hourly Rate",
            "dataType": "DECIMAL(10,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "logicalName": "Reservation",
        "description": "Reservation",
        "x": 1080,
        "y": 137,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_7926a44d-a474-4079-a30b-002619eae17b",
            "logicalName": "Reservation Id",
            "description": "Reservation Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_faed9538-d01e-4066-95b1-08eef669dcd5",
            "logicalName": "Resource Id",
            "description": "Resource Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_e893c90c-0ea2-4fb6-850f-51e6081667c4",
            "referencesEntityId": "entity_3749112b-77b5-4bf4-933b-e5321fca8ea0",
            "referencesAttributeId": "attribute_0f8bbe6e-1ed4-47f8-ab11-435365f5eff4",
            "unique": false
          },
          {
            "id": "attribute_e87f81bc-618c-41a6-815a-508455035f49",
            "logicalName": "Customer Id",
            "description": "Customer Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_856668aa-5a1d-4ad2-afd1-7cab681d17fc",
            "referencesEntityId": "entity_20457697-25c5-4ff6-bf15-4f9eaaf8a3d2",
            "referencesAttributeId": "attribute_a39d643a-0697-4d68-a8fc-cbbf9318c79c",
            "unique": false
          },
          {
            "id": "attribute_ddfd6873-7a4f-4833-97c0-266430aeb8c1",
            "logicalName": "Reservation Status",
            "description": "Reservation Status",
            "dataType": "varchar(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Status Code"
          },
          {
            "id": "attribute_15671b3f-f070-4e02-99b6-c0bfb80bebda",
            "logicalName": "Starts At",
            "description": "Starts At",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_7cb30f5d-4799-4820-9108-a60c2ac67b85",
            "logicalName": "Ends At",
            "description": "Ends At",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_2b17eefb-f47b-4bbb-9fee-104e15c6b1cb",
        "logicalName": "Payment",
        "description": "Payment",
        "x": 1620,
        "y": 308,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_d0ee7852-b207-4b49-890f-41209f575f29",
            "logicalName": "Payment Id",
            "description": "Payment Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_1af85677-ba64-447b-b74f-20b184e58ed6",
            "logicalName": "Reservation Id",
            "description": "Reservation Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_96914b6e-b486-46c0-9a19-4e3f9fedad58",
            "referencesEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
            "referencesAttributeId": "attribute_7926a44d-a474-4079-a30b-002619eae17b",
            "unique": false
          },
          {
            "id": "attribute_bd47f162-741e-41e7-856b-10d90d262d1d",
            "logicalName": "Payment Amount",
            "description": "Payment Amount",
            "dataType": "decimal(12,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "domain": "Money"
          },
          {
            "id": "attribute_d083a043-c058-459e-838e-e1c291057cd1",
            "logicalName": "Payment Method",
            "description": "Payment Method",
            "dataType": "VARCHAR(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_af7474f3-a2a2-42a9-944a-bdb5d78c21e8",
            "logicalName": "Paid At",
            "description": "Paid At",
            "dataType": "TIMESTAMP",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      },
      {
        "id": "entity_9e68a2d2-f262-40ed-ae26-718d27fce1a0",
        "logicalName": "Review",
        "description": "Review",
        "x": 1620,
        "y": 0,
        "width": 360,
        "attributes": [
          {
            "id": "attribute_1931cdc0-a7a9-49b6-b63c-8f0114994c49",
            "logicalName": "Review Id",
            "description": "Review Id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_34ea539a-fb3e-4574-9ee5-42630dfbf753",
            "logicalName": "Reservation Id",
            "description": "Reservation Id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "foreignKeyRelationshipId": "relationship_b4912d37-471e-4b79-9717-ea874b056383",
            "referencesEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
            "referencesAttributeId": "attribute_7926a44d-a474-4079-a30b-002619eae17b",
            "unique": true
          },
          {
            "id": "attribute_6b3fa296-bc32-4cf0-bdd7-c81d77287ce2",
            "logicalName": "Rating",
            "description": "Rating",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_4bef0853-b27d-402f-9348-7e5ab642993e",
            "logicalName": "Review Body",
            "description": "Review Body",
            "dataType": "TEXT",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          },
          {
            "id": "attribute_e01006cb-c00b-448f-945a-05ddb495b1a5",
            "logicalName": "Reviewed At",
            "description": "Reviewed At",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false
          }
        ]
      }
    ],
    "relationships": [
      {
        "id": "relationship_9ba21578-4fc1-47b3-8671-48129b254050",
        "sourceEntityId": "entity_3bf7e1ac-6b48-4511-b23a-fa9eb5152ed8",
        "targetEntityId": "entity_3749112b-77b5-4bf4-933b-e5321fca8ea0",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "cascade",
        "constraintName": "fk_resources_venue"
      },
      {
        "id": "relationship_e893c90c-0ea2-4fb6-850f-51e6081667c4",
        "sourceEntityId": "entity_3749112b-77b5-4bf4-933b-e5321fca8ea0",
        "targetEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "restrict",
        "constraintName": "fk_reservations_resource"
      },
      {
        "id": "relationship_856668aa-5a1d-4ad2-afd1-7cab681d17fc",
        "sourceEntityId": "entity_20457697-25c5-4ff6-bf15-4f9eaaf8a3d2",
        "targetEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "restrict",
        "constraintName": "fk_reservations_customer"
      },
      {
        "id": "relationship_96914b6e-b486-46c0-9a19-4e3f9fedad58",
        "sourceEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "targetEntityId": "entity_2b17eefb-f47b-4bbb-9fee-104e15c6b1cb",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "cascade",
        "constraintName": "fk_payments_reservation"
      },
      {
        "id": "relationship_b4912d37-471e-4b79-9717-ea874b056383",
        "sourceEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "targetEntityId": "entity_9e68a2d2-f262-40ed-ae26-718d27fce1a0",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying",
        "onDelete": "cascade",
        "constraintName": "fk_reviews_reservation"
      }
    ]
  },
  "physicalModel": {
    "tables": [
      {
        "id": "table_e1068579-293d-4c9d-a6b5-2dc168afbcd9",
        "logicalEntityId": "entity_20457697-25c5-4ff6-bf15-4f9eaaf8a3d2",
        "physicalName": "customers",
        "comment": "Customer",
        "x": 540,
        "y": 26,
        "width": 360,
        "columns": [
          {
            "id": "column_8347c561-b8a0-42f4-b1d5-93adae6139f0",
            "logicalAttributeId": "attribute_a39d643a-0697-4d68-a8fc-cbbf9318c79c",
            "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_896ef421-187a-4242-bd98-9a9504f3ff71",
            "logicalAttributeId": "attribute_ce114f94-2cb7-4f05-b826-abf3903336e4",
            "physicalName": "email",
            "dataType": "varchar(255)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": true,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Email",
            "manualOverride": true
          },
          {
            "id": "column_d32003a4-0bbe-421c-9d52-4fc8c6b17dab",
            "logicalAttributeId": "attribute_963a8aba-9598-496e-ad70-83cabe930559",
            "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_08a02cbd-1375-4028-80c0-13ee2a034de3",
            "logicalAttributeId": "attribute_32c43774-7359-4028-b918-178d1eed6754",
            "physicalName": "phone",
            "dataType": "VARCHAR(40)",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Phone",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      },
      {
        "id": "table_79246618-2fc3-450d-8787-e0bef22f9763",
        "logicalEntityId": "entity_3bf7e1ac-6b48-4511-b23a-fa9eb5152ed8",
        "physicalName": "venues",
        "comment": "Venue",
        "x": 0,
        "y": 317,
        "width": 360,
        "columns": [
          {
            "id": "column_bba5dd4b-e37a-4a09-b1f3-be9d1ec0afe1",
            "logicalAttributeId": "attribute_3161bc90-61a8-4b91-8f81-b32466e95730",
            "physicalName": "venue_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Venue Id",
            "manualOverride": true
          },
          {
            "id": "column_bfec50a7-07e2-4611-aefb-ee67b0818c0d",
            "logicalAttributeId": "attribute_c96216a9-bf02-49ce-9b10-701f55717b20",
            "physicalName": "venue_name",
            "dataType": "VARCHAR(160)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Venue Name",
            "manualOverride": true
          },
          {
            "id": "column_4ea51d2d-e01f-4af4-88c8-4f146ab09ce7",
            "logicalAttributeId": "attribute_0f6feb98-79ed-4883-b8c6-325e811c575d",
            "physicalName": "venue_address",
            "dataType": "VARCHAR(300)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Venue Address",
            "manualOverride": true
          },
          {
            "id": "column_94253b9a-b89c-4912-a085-36926d74e51c",
            "logicalAttributeId": "attribute_b449cba8-a73b-48e8-abf9-d3045b53d154",
            "physicalName": "timezone",
            "dataType": "VARCHAR(60)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Timezone",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      },
      {
        "id": "table_6e3b54d8-8a55-4f78-b1f4-767078a2fac7",
        "logicalEntityId": "entity_3749112b-77b5-4bf4-933b-e5321fca8ea0",
        "physicalName": "resources",
        "comment": "Resource",
        "x": 540,
        "y": 300,
        "width": 360,
        "columns": [
          {
            "id": "column_f742b0a0-6104-4f77-8451-47f9b987d86e",
            "logicalAttributeId": "attribute_0f8bbe6e-1ed4-47f8-ab11-435365f5eff4",
            "physicalName": "resource_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Resource Id",
            "manualOverride": true
          },
          {
            "id": "column_e92aae93-a3d1-45dc-a399-d670ff274184",
            "logicalAttributeId": "attribute_18af7c9d-331a-4224-b4fa-11017751f1da",
            "physicalName": "venue_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Venue Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_9ba21578-4fc1-47b3-8671-48129b254050",
            "referencesTableId": "table_79246618-2fc3-450d-8787-e0bef22f9763",
            "referencesColumnId": "column_bba5dd4b-e37a-4a09-b1f3-be9d1ec0afe1"
          },
          {
            "id": "column_6113b6c1-0ccf-470c-a02c-139b80fef664",
            "logicalAttributeId": "attribute_b739e5c6-bd92-4099-b1ae-51a150087960",
            "physicalName": "resource_name",
            "dataType": "VARCHAR(160)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Resource Name",
            "manualOverride": true
          },
          {
            "id": "column_274fc6c4-263c-49c3-a8b9-2c66db179ce1",
            "logicalAttributeId": "attribute_31ecdcaf-8d32-4cff-bdb9-1a0a4429ce61",
            "physicalName": "capacity",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Capacity",
            "manualOverride": true
          },
          {
            "id": "column_566a5b0f-5708-4678-a25b-a994ec0c5739",
            "logicalAttributeId": "attribute_0260cb5a-582c-4f68-9b75-67e174823c14",
            "physicalName": "hourly_rate",
            "dataType": "DECIMAL(10,2)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Hourly Rate",
            "manualOverride": true
          }
        ],
        "indexes": [
          {
            "id": "index_b45a9bad-e111-4f82-a1d6-601eda1c62fd",
            "name": "idx_resources_venue",
            "unique": false,
            "columnIds": [
              "column_e92aae93-a3d1-45dc-a399-d670ff274184"
            ]
          }
        ],
        "manualOverride": true
      },
      {
        "id": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
        "logicalEntityId": "entity_14644eed-b7cc-4c48-bb9f-0e5fba62052c",
        "physicalName": "reservations",
        "comment": "Reservation",
        "x": 1080,
        "y": 137,
        "width": 360,
        "columns": [
          {
            "id": "column_7625088e-2312-45d2-8830-f28da9b89f76",
            "logicalAttributeId": "attribute_7926a44d-a474-4079-a30b-002619eae17b",
            "physicalName": "reservation_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Reservation Id",
            "manualOverride": true
          },
          {
            "id": "column_678531a4-e565-48f2-8d9e-eed334a125c1",
            "logicalAttributeId": "attribute_faed9538-d01e-4066-95b1-08eef669dcd5",
            "physicalName": "resource_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Resource Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_e893c90c-0ea2-4fb6-850f-51e6081667c4",
            "referencesTableId": "table_6e3b54d8-8a55-4f78-b1f4-767078a2fac7",
            "referencesColumnId": "column_f742b0a0-6104-4f77-8451-47f9b987d86e"
          },
          {
            "id": "column_578844c3-f206-4cde-92f5-9bb650031372",
            "logicalAttributeId": "attribute_e87f81bc-618c-41a6-815a-508455035f49",
            "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_856668aa-5a1d-4ad2-afd1-7cab681d17fc",
            "referencesTableId": "table_e1068579-293d-4c9d-a6b5-2dc168afbcd9",
            "referencesColumnId": "column_8347c561-b8a0-42f4-b1d5-93adae6139f0"
          },
          {
            "id": "column_eaa73aa7-e72a-4632-9705-dcfc7d870f17",
            "logicalAttributeId": "attribute_ddfd6873-7a4f-4833-97c0-266430aeb8c1",
            "physicalName": "reservation_status",
            "dataType": "varchar(30)",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Reservation Status",
            "manualOverride": true
          },
          {
            "id": "column_4d95c8d6-fbdb-46f1-afbb-c4c9ec8ad18e",
            "logicalAttributeId": "attribute_15671b3f-f070-4e02-99b6-c0bfb80bebda",
            "physicalName": "starts_at",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Starts At",
            "manualOverride": true
          },
          {
            "id": "column_e3ebfdf9-5377-49f4-9ec6-f8d48ccb55e1",
            "logicalAttributeId": "attribute_7cb30f5d-4799-4820-9108-a60c2ac67b85",
            "physicalName": "ends_at",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Ends At",
            "manualOverride": true
          }
        ],
        "indexes": [
          {
            "id": "index_f3bb6062-381f-4cf0-99d7-69f923e4a00f",
            "name": "idx_reservations_resource",
            "unique": false,
            "columnIds": [
              "column_678531a4-e565-48f2-8d9e-eed334a125c1"
            ]
          },
          {
            "id": "index_5394623d-ec2c-492c-a259-fc04181367cd",
            "name": "idx_reservations_customer",
            "unique": false,
            "columnIds": [
              "column_578844c3-f206-4cde-92f5-9bb650031372"
            ]
          }
        ],
        "manualOverride": true
      },
      {
        "id": "table_cb3972e9-aeb0-4da4-8663-31ec04cef3e4",
        "logicalEntityId": "entity_2b17eefb-f47b-4bbb-9fee-104e15c6b1cb",
        "physicalName": "payments",
        "comment": "Payment",
        "x": 1620,
        "y": 308,
        "width": 360,
        "columns": [
          {
            "id": "column_17d9a2a7-919c-4813-a0ed-0dd443d04371",
            "logicalAttributeId": "attribute_d0ee7852-b207-4b49-890f-41209f575f29",
            "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_5bac870d-f0c8-483e-a1ce-baea7038b521",
            "logicalAttributeId": "attribute_1af85677-ba64-447b-b74f-20b184e58ed6",
            "physicalName": "reservation_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": false,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Reservation Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_96914b6e-b486-46c0-9a19-4e3f9fedad58",
            "referencesTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
            "referencesColumnId": "column_7625088e-2312-45d2-8830-f28da9b89f76"
          },
          {
            "id": "column_4c1d9eee-b6bc-4dcb-8d11-f2a48428097c",
            "logicalAttributeId": "attribute_bd47f162-741e-41e7-856b-10d90d262d1d",
            "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_891af49e-3073-4018-b4ea-2c8b80f01d7b",
            "logicalAttributeId": "attribute_d083a043-c058-459e-838e-e1c291057cd1",
            "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_085db163-5ed7-4a48-a858-1c0c1c812c62",
            "logicalAttributeId": "attribute_af7474f3-a2a2-42a9-944a-bdb5d78c21e8",
            "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
      },
      {
        "id": "table_b765b205-fdfc-4527-acb4-32ca73c2e6fb",
        "logicalEntityId": "entity_9e68a2d2-f262-40ed-ae26-718d27fce1a0",
        "physicalName": "reviews",
        "comment": "Review",
        "x": 1620,
        "y": 0,
        "width": 360,
        "columns": [
          {
            "id": "column_40dd761a-9262-401b-8c69-f1c3b83524dd",
            "logicalAttributeId": "attribute_1931cdc0-a7a9-49b6-b63c-8f0114994c49",
            "physicalName": "review_id",
            "dataType": "BIGINT",
            "nullable": true,
            "primaryKey": true,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": true,
            "defaultValue": "",
            "comment": "Review Id",
            "manualOverride": true
          },
          {
            "id": "column_a928f7e6-e76a-46eb-bd4f-743d4f4c0fdb",
            "logicalAttributeId": "attribute_34ea539a-fb3e-4574-9ee5-42630dfbf753",
            "physicalName": "reservation_id",
            "dataType": "BIGINT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": true,
            "unique": true,
            "indexed": true,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Reservation Id",
            "manualOverride": true,
            "foreignKeyRelationshipId": "relationship_b4912d37-471e-4b79-9717-ea874b056383",
            "referencesTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
            "referencesColumnId": "column_7625088e-2312-45d2-8830-f28da9b89f76"
          },
          {
            "id": "column_37201574-7a01-47d5-8c16-5d590c98c1ab",
            "logicalAttributeId": "attribute_6b3fa296-bc32-4cf0-bdd7-c81d77287ce2",
            "physicalName": "rating",
            "dataType": "INT",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Rating",
            "manualOverride": true
          },
          {
            "id": "column_e6308dc5-eb9d-4e1b-91bf-d73131969e88",
            "logicalAttributeId": "attribute_4bef0853-b27d-402f-9348-7e5ab642993e",
            "physicalName": "review_body",
            "dataType": "TEXT",
            "nullable": true,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Review Body",
            "manualOverride": true
          },
          {
            "id": "column_31b5f21c-9a6f-4404-89ee-86c8f6da1a0f",
            "logicalAttributeId": "attribute_e01006cb-c00b-448f-945a-05ddb495b1a5",
            "physicalName": "reviewed_at",
            "dataType": "TIMESTAMP",
            "nullable": false,
            "primaryKey": false,
            "foreignKey": false,
            "unique": false,
            "indexed": false,
            "autoIncrement": false,
            "defaultValue": "",
            "comment": "Reviewed At",
            "manualOverride": true
          }
        ],
        "indexes": [],
        "manualOverride": true
      }
    ],
    "relationships": [
      {
        "id": "physicalRelationship_c12b0996-0e01-427a-988b-549d186a40d6",
        "logicalRelationshipId": "relationship_9ba21578-4fc1-47b3-8671-48129b254050",
        "sourceTableId": "table_79246618-2fc3-450d-8787-e0bef22f9763",
        "targetTableId": "table_6e3b54d8-8a55-4f78-b1f4-767078a2fac7",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_d721bddb-273e-4b83-88c3-cf1ac9210ade",
        "logicalRelationshipId": "relationship_e893c90c-0ea2-4fb6-850f-51e6081667c4",
        "sourceTableId": "table_6e3b54d8-8a55-4f78-b1f4-767078a2fac7",
        "targetTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_8f6984ed-e3fc-47f0-8f9a-97ed97fcfb1f",
        "logicalRelationshipId": "relationship_856668aa-5a1d-4ad2-afd1-7cab681d17fc",
        "sourceTableId": "table_e1068579-293d-4c9d-a6b5-2dc168afbcd9",
        "targetTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_9ee403ec-5360-4200-b4af-1208b45d9e79",
        "logicalRelationshipId": "relationship_96914b6e-b486-46c0-9a19-4e3f9fedad58",
        "sourceTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
        "targetTableId": "table_cb3972e9-aeb0-4da4-8663-31ec04cef3e4",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      },
      {
        "id": "physicalRelationship_01116078-064a-47a0-a065-88bc40af158d",
        "logicalRelationshipId": "relationship_b4912d37-471e-4b79-9717-ea874b056383",
        "sourceTableId": "table_fb503f87-f7ca-4060-aaa4-e5218ea8a260",
        "targetTableId": "table_b765b205-fdfc-4527-acb4-32ca73c2e6fb",
        "cardinality": "1:N",
        "sourceEnd": "one",
        "targetEnd": "zeroOrMany",
        "relationshipType": "nonIdentifying"
      }
    ]
  },
  "wordDictionary": {
    "entries": [
      {
        "id": "word_4f4f6c1c-9ac2-498d-b007-7b32080496a3",
        "logicalWord": "Address",
        "physicalWord": "ADDRESS",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_bd35f297-7ca6-4e95-8afa-a805d387c911",
        "logicalWord": "Amount",
        "physicalWord": "AMOUNT",
        "abbreviation": "",
        "englishName": "",
        "description": "Monetary value",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_6c24716d-b5df-4045-a272-5bc16933168b",
        "logicalWord": "At",
        "physicalWord": "AT",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_657b73c0-8615-4c27-a199-2227a1432ae5",
        "logicalWord": "Body",
        "physicalWord": "BODY",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_957a67b7-b1af-4078-9e27-324a36e9f73b",
        "logicalWord": "Capacity",
        "physicalWord": "CAPACITY",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_f46d7cb1-b104-4cf4-a4d5-eb3c3101f5ab",
        "logicalWord": "Customer",
        "physicalWord": "CUSTOMER",
        "abbreviation": "",
        "englishName": "",
        "description": "A person or company that places orders",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_d0750fac-ddec-4af1-aeb8-b29bdd1c1cdd",
        "logicalWord": "Email",
        "physicalWord": "EMAIL",
        "abbreviation": "",
        "englishName": "",
        "description": "Email address",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_73f529d6-ffaf-44c0-8bee-ebced68a0c70",
        "logicalWord": "Ends",
        "physicalWord": "ENDS",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_6bb74cc2-e87c-4ad0-99c3-6f6a7a0b4786",
        "logicalWord": "Full",
        "physicalWord": "FULL",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_3ed7af42-1955-4132-9faa-42ea729ec548",
        "logicalWord": "Hourly",
        "physicalWord": "HOURLY",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_6e0456d6-41b4-4d7e-8999-080ea303ab04",
        "logicalWord": "Id",
        "physicalWord": "ID",
        "abbreviation": "",
        "englishName": "",
        "description": "Unique key for a record",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_fbbb2475-bf4e-44a8-995d-24ebf4c7f9ad",
        "logicalWord": "Method",
        "physicalWord": "METHOD",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_26989912-00c8-400a-87b3-9f20174a6a4c",
        "logicalWord": "Name",
        "physicalWord": "NAME",
        "abbreviation": "",
        "englishName": "",
        "description": "Human-readable label",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_98981e2e-53b9-45f1-9f8d-efd33052d3f7",
        "logicalWord": "Paid",
        "physicalWord": "PAID",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_9b3de71b-a6b0-4549-8a5a-810c3f0f7577",
        "logicalWord": "Payment",
        "physicalWord": "PAYMENT",
        "abbreviation": "",
        "englishName": "",
        "description": "Money settling an order or reservation",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_93e6cb89-8ee9-4178-a815-66cbaf536a82",
        "logicalWord": "Phone",
        "physicalWord": "PHONE",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_560c185c-6d4b-400a-aa89-a0b12b73f50d",
        "logicalWord": "Rate",
        "physicalWord": "RATE",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_8bc158d5-cc4b-4044-8266-292f50dba2e0",
        "logicalWord": "Rating",
        "physicalWord": "RATING",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_544376cb-e27b-47b4-9872-1f409b43b222",
        "logicalWord": "Reservation",
        "physicalWord": "RESERVATION",
        "abbreviation": "",
        "englishName": "",
        "description": "A time-bound booking of a resource",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_714e49fb-ea11-4691-b317-a133cf04fd9e",
        "logicalWord": "Resource",
        "physicalWord": "RESOURCE",
        "abbreviation": "",
        "englishName": "",
        "description": "A bookable unit within a venue",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_509067df-48e3-4cc4-8a77-74ea72607fcf",
        "logicalWord": "Review",
        "physicalWord": "REVIEW",
        "abbreviation": "",
        "englishName": "",
        "description": "Feedback on a completed reservation",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_2e8cf244-423f-49fc-a5f7-f11b0b8d7335",
        "logicalWord": "Reviewed",
        "physicalWord": "REVIEWED",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_88f2cef8-a395-4683-9075-3a9899bec98e",
        "logicalWord": "Starts",
        "physicalWord": "STARTS",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_d41d742f-aad9-4b69-a34a-f1143c0c89c2",
        "logicalWord": "Status",
        "physicalWord": "STATUS",
        "abbreviation": "",
        "englishName": "",
        "description": "Lifecycle state of a record",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_6e8b2c2a-5c82-417f-8bb5-f87bb603cb42",
        "logicalWord": "Timezone",
        "physicalWord": "TIMEZONE",
        "abbreviation": "",
        "englishName": "",
        "description": "",
        "enabled": true,
        "synonyms": []
      },
      {
        "id": "word_f11b1eb8-88bd-4e0b-b5e5-93a661084e32",
        "logicalWord": "Venue",
        "physicalWord": "VENUE",
        "abbreviation": "",
        "englishName": "",
        "description": "A physical location that hosts resources",
        "enabled": true,
        "synonyms": []
      }
    ]
  },
  "domains": [
    {
      "id": "domain_c352eba5-1e4c-4de9-a196-702243a1d351",
      "name": "Email",
      "dataType": "varchar(255)",
      "description": "Email address"
    },
    {
      "id": "domain_0d7eb00f-a903-4ee1-ac7b-cb6579e9e2c6",
      "name": "Money",
      "dataType": "decimal(12,2)",
      "description": "Monetary value"
    },
    {
      "id": "domain_9dc92fa5-38de-4d95-94e2-ab80bae89e4f",
      "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.973Z"
}