{"schemaVersion":5,"id":"project_b7b71eb0-1910-461e-bddf-a0cfe350a5eb","name":"Booking / Reservation Starter","dialect":"mysql","entities":[{"id":"entity_37be1d02-111f-45f6-95e3-ca20d4c5a8e6","logicalName":"Customer","physicalName":"customers","description":"Customer","x":540,"y":26,"width":360,"attributes":[{"id":"attribute_a8c92030-be39-451d-8ee8-9ff0aa97468d","logicalName":"Customer Id","physicalName":"customer_id","physicalNameManual":true,"description":"Customer Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_9e9e3fd8-9d02-4597-9123-64ce0d2e3f78","logicalName":"Email","physicalName":"email","physicalNameManual":true,"description":"Email","dataType":"varchar(255)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":true,"domain":"Email"},{"id":"attribute_afb90bd3-87f9-4565-b275-aa0fb61e237b","logicalName":"Full Name","physicalName":"full_name","physicalNameManual":true,"description":"Full Name","dataType":"VARCHAR(120)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_b4f61f12-94d0-4bea-aaf1-543e5a5217ba","logicalName":"Phone","physicalName":"phone","physicalNameManual":true,"description":"Phone","dataType":"VARCHAR(40)","nullable":true,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[],"physicalNameManual":true},{"id":"entity_d60ae32d-3e6a-4186-a091-c11e09e509fb","logicalName":"Venue","physicalName":"venues","description":"Venue","x":0,"y":317,"width":360,"attributes":[{"id":"attribute_4bf66f9f-4a83-4c18-8e21-3a3776226158","logicalName":"Venue Id","physicalName":"venue_id","physicalNameManual":true,"description":"Venue Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_e6291f26-0c29-4f91-b595-56a752c5f6ab","logicalName":"Venue Name","physicalName":"venue_name","physicalNameManual":true,"description":"Venue Name","dataType":"VARCHAR(160)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_5a0d60c1-4c2a-4908-bc2c-48f590dc3a5f","logicalName":"Venue Address","physicalName":"venue_address","physicalNameManual":true,"description":"Venue Address","dataType":"VARCHAR(300)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_b202e5c3-1ade-415f-90df-1e038996d98e","logicalName":"Timezone","physicalName":"timezone","physicalNameManual":true,"description":"Timezone","dataType":"VARCHAR(60)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[],"physicalNameManual":true},{"id":"entity_7e4df78c-c267-4171-9b0a-fc2f251f285d","logicalName":"Resource","physicalName":"resources","description":"Resource","x":540,"y":300,"width":360,"attributes":[{"id":"attribute_d0539bb2-4cb3-4b0b-ac04-7175f839141c","logicalName":"Resource Id","physicalName":"resource_id","physicalNameManual":true,"description":"Resource Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_4b051f68-168c-4194-a905-f20543389b7f","logicalName":"Venue Id","physicalName":"venue_id","physicalNameManual":true,"description":"Venue Id","dataType":"BIGINT","nullable":false,"primaryKey":false,"foreignKey":true,"unique":false,"indexed":true,"foreignKeyRelationshipId":"relationship_46064e7e-46f5-45d3-83ce-122597bc9944","referencesEntityId":"entity_d60ae32d-3e6a-4186-a091-c11e09e509fb","referencesAttributeId":"attribute_4bf66f9f-4a83-4c18-8e21-3a3776226158"},{"id":"attribute_38365960-93e5-43e3-9c7c-69edd7a14837","logicalName":"Resource Name","physicalName":"resource_name","physicalNameManual":true,"description":"Resource Name","dataType":"VARCHAR(160)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_804db5fe-1a58-45b4-ae66-720dad76b4d4","logicalName":"Capacity","physicalName":"capacity","physicalNameManual":true,"description":"Capacity","dataType":"INT","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_341baed1-ed59-47b6-b163-219331c59397","logicalName":"Hourly Rate","physicalName":"hourly_rate","physicalNameManual":true,"description":"Hourly Rate","dataType":"DECIMAL(10,2)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[{"id":"index_703c6e6f-4662-44bb-96a9-ceb1b94df7a7","name":"idx_resources_venue","unique":false,"columnIds":["attribute_4b051f68-168c-4194-a905-f20543389b7f"]}],"physicalNameManual":true},{"id":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","logicalName":"Reservation","physicalName":"reservations","description":"Reservation","x":1080,"y":137,"width":360,"attributes":[{"id":"attribute_b031490d-1119-410f-8a73-12edf3d38300","logicalName":"Reservation Id","physicalName":"reservation_id","physicalNameManual":true,"description":"Reservation Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_ae1dfa2a-bbd9-40ab-aa68-40de3d679b1c","logicalName":"Resource Id","description":"Resource Id","dataType":"BIGINT","nullable":false,"primaryKey":false,"foreignKey":true,"foreignKeyRelationshipId":"relationship_5fa4ad2f-9594-420c-bb56-42f84ac2f044","referencesEntityId":"entity_7e4df78c-c267-4171-9b0a-fc2f251f285d","referencesAttributeId":"attribute_d0539bb2-4cb3-4b0b-ac04-7175f839141c","unique":false,"physicalName":"resource_id","physicalNameManual":true},{"id":"attribute_2801a925-977d-4da7-8c77-8a4c89fbf265","logicalName":"Customer Id","description":"Customer Id","dataType":"BIGINT","nullable":false,"primaryKey":false,"foreignKey":true,"foreignKeyRelationshipId":"relationship_94561f7e-c214-4b89-83cd-5f8c93d82a06","referencesEntityId":"entity_37be1d02-111f-45f6-95e3-ca20d4c5a8e6","referencesAttributeId":"attribute_a8c92030-be39-451d-8ee8-9ff0aa97468d","unique":false,"physicalName":"customer_id","physicalNameManual":true},{"id":"attribute_e3b07bf9-9103-47f5-867e-05fdbd9a6d58","logicalName":"Reservation Status","physicalName":"reservation_status","physicalNameManual":true,"description":"Reservation Status","dataType":"varchar(30)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false,"domain":"Status Code"},{"id":"attribute_cb1ccc97-a41d-4c8a-b6f0-cac6e0736f32","logicalName":"Starts At","physicalName":"starts_at","physicalNameManual":true,"description":"Starts At","dataType":"TIMESTAMP","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_d051d26f-2b3e-4396-bca7-33b0cb20a9b0","logicalName":"Ends At","physicalName":"ends_at","physicalNameManual":true,"description":"Ends At","dataType":"TIMESTAMP","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[],"physicalNameManual":true},{"id":"entity_57eabb9f-5cd5-49d8-8633-1dc7d010ae8b","logicalName":"Payment","physicalName":"payments","description":"Payment","x":1620,"y":308,"width":360,"attributes":[{"id":"attribute_059c39b3-ce7f-43e5-91da-239def0ab7a0","logicalName":"Payment Id","physicalName":"payment_id","physicalNameManual":true,"description":"Payment Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_f81e1b3e-0d5d-4036-aff4-157dd98c1660","logicalName":"Reservation Id","description":"Reservation Id","dataType":"BIGINT","nullable":false,"primaryKey":false,"foreignKey":true,"foreignKeyRelationshipId":"relationship_5036dce3-2835-49e5-ae04-b7fa6948ed95","referencesEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","referencesAttributeId":"attribute_b031490d-1119-410f-8a73-12edf3d38300","unique":false,"physicalName":"reservation_id","physicalNameManual":true},{"id":"attribute_03cec38d-087c-4413-aea9-c49efdf0ec58","logicalName":"Payment Amount","physicalName":"payment_amount","physicalNameManual":true,"description":"Payment Amount","dataType":"decimal(12,2)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false,"domain":"Money"},{"id":"attribute_6093596f-68a7-41f0-857e-2ac5b8097924","logicalName":"Payment Method","physicalName":"payment_method","physicalNameManual":true,"description":"Payment Method","dataType":"VARCHAR(30)","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_30ffeaa5-baf2-48b1-a23a-074d49628bf1","logicalName":"Paid At","physicalName":"paid_at","physicalNameManual":true,"description":"Paid At","dataType":"TIMESTAMP","nullable":true,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[],"physicalNameManual":true},{"id":"entity_c90e074c-d408-419e-9041-4ac820e2ffd1","logicalName":"Review","physicalName":"reviews","description":"Review","x":1620,"y":0,"width":360,"attributes":[{"id":"attribute_c50dc3a2-7d84-4763-b0ae-d79f51cc318f","logicalName":"Review Id","physicalName":"review_id","physicalNameManual":true,"description":"Review Id","dataType":"BIGINT","nullable":true,"primaryKey":true,"foreignKey":false,"unique":false,"autoIncrement":true},{"id":"attribute_61063243-6435-4318-bdc7-4d7ca86d364b","logicalName":"Reservation Id","description":"Reservation Id","dataType":"BIGINT","nullable":false,"primaryKey":false,"foreignKey":true,"foreignKeyRelationshipId":"relationship_39d498be-0344-4312-8f70-618fa4753d58","referencesEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","referencesAttributeId":"attribute_b031490d-1119-410f-8a73-12edf3d38300","unique":true,"physicalName":"reservation_id","physicalNameManual":true},{"id":"attribute_75a2848f-7308-48c4-8400-c33e1a851e9c","logicalName":"Rating","physicalName":"rating","physicalNameManual":true,"description":"Rating","dataType":"INT","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_85675c4f-cc5d-4cf4-a91f-0cc24d9699e5","logicalName":"Review Body","physicalName":"review_body","physicalNameManual":true,"description":"Review Body","dataType":"TEXT","nullable":true,"primaryKey":false,"foreignKey":false,"unique":false},{"id":"attribute_eab782bb-31c6-413e-b356-8087470ba84a","logicalName":"Reviewed At","physicalName":"reviewed_at","physicalNameManual":true,"description":"Reviewed At","dataType":"TIMESTAMP","nullable":false,"primaryKey":false,"foreignKey":false,"unique":false}],"indexes":[],"physicalNameManual":true}],"relationships":[{"id":"relationship_46064e7e-46f5-45d3-83ce-122597bc9944","sourceEntityId":"entity_d60ae32d-3e6a-4186-a091-c11e09e509fb","targetEntityId":"entity_7e4df78c-c267-4171-9b0a-fc2f251f285d","cardinality":"1:N","sourceEnd":"one","targetEnd":"zeroOrMany","relationshipType":"nonIdentifying","onDelete":"cascade","constraintName":"fk_resources_venue"},{"id":"relationship_5fa4ad2f-9594-420c-bb56-42f84ac2f044","sourceEntityId":"entity_7e4df78c-c267-4171-9b0a-fc2f251f285d","targetEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","cardinality":"1:N","sourceEnd":"one","targetEnd":"zeroOrMany","relationshipType":"nonIdentifying","onDelete":"restrict","constraintName":"fk_reservations_resource"},{"id":"relationship_94561f7e-c214-4b89-83cd-5f8c93d82a06","sourceEntityId":"entity_37be1d02-111f-45f6-95e3-ca20d4c5a8e6","targetEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","cardinality":"1:N","sourceEnd":"one","targetEnd":"zeroOrMany","relationshipType":"nonIdentifying","onDelete":"restrict","constraintName":"fk_reservations_customer"},{"id":"relationship_5036dce3-2835-49e5-ae04-b7fa6948ed95","sourceEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","targetEntityId":"entity_57eabb9f-5cd5-49d8-8633-1dc7d010ae8b","cardinality":"1:N","sourceEnd":"one","targetEnd":"zeroOrMany","relationshipType":"nonIdentifying","onDelete":"cascade","constraintName":"fk_payments_reservation"},{"id":"relationship_39d498be-0344-4312-8f70-618fa4753d58","sourceEntityId":"entity_af3cbe38-aaa2-4e90-974f-21a0b10db3ac","targetEntityId":"entity_c90e074c-d408-419e-9041-4ac820e2ffd1","cardinality":"1:N","sourceEnd":"one","targetEnd":"zeroOrMany","relationshipType":"nonIdentifying","onDelete":"cascade","constraintName":"fk_reviews_reservation"}],"wordDictionary":{"entries":[{"id":"word_e0010bab-93b9-4075-ad8b-e8cc61c79647","logicalWord":"Address","physicalWord":"ADDRESS","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_1251d832-097d-4e03-afec-1aadb4b40f15","logicalWord":"Amount","physicalWord":"AMOUNT","abbreviation":"","englishName":"","description":"Monetary value","enabled":true,"synonyms":[]},{"id":"word_3978e26c-3cd3-46fb-a620-99ccb9940758","logicalWord":"At","physicalWord":"AT","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_de075aca-8436-460f-b529-e1fa0609fb27","logicalWord":"Body","physicalWord":"BODY","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_f3046887-497b-40ac-b3a6-1ae9f197b745","logicalWord":"Capacity","physicalWord":"CAPACITY","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_8d464d40-4bbc-4cc7-bc97-1ba8d3d6fc68","logicalWord":"Customer","physicalWord":"CUSTOMER","abbreviation":"","englishName":"","description":"A person or company that places orders","enabled":true,"synonyms":[]},{"id":"word_5c01a04a-69db-4287-8925-2b07f870268c","logicalWord":"Email","physicalWord":"EMAIL","abbreviation":"","englishName":"","description":"Email address","enabled":true,"synonyms":[]},{"id":"word_92718769-207a-4665-bd7e-9921315c8a20","logicalWord":"Ends","physicalWord":"ENDS","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_aaf20361-6bc1-4747-9b50-15d3f9da530a","logicalWord":"Full","physicalWord":"FULL","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_0ce1c961-513b-4d27-a46f-e951827d8e05","logicalWord":"Hourly","physicalWord":"HOURLY","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_4f768286-8c0e-42fb-92dd-16f83d202c86","logicalWord":"Id","physicalWord":"ID","abbreviation":"","englishName":"","description":"Unique key for a record","enabled":true,"synonyms":[]},{"id":"word_786520fa-b24a-4c5f-9263-7ddefec86e74","logicalWord":"Method","physicalWord":"METHOD","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_17d4a5fd-3d84-4918-8947-88fc50ed7b90","logicalWord":"Name","physicalWord":"NAME","abbreviation":"","englishName":"","description":"Human-readable label","enabled":true,"synonyms":[]},{"id":"word_73eaf944-4932-4482-a643-447779058ac4","logicalWord":"Paid","physicalWord":"PAID","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_c6e753ac-5049-4943-857b-429bd35d111b","logicalWord":"Payment","physicalWord":"PAYMENT","abbreviation":"","englishName":"","description":"Money settling an order or reservation","enabled":true,"synonyms":[]},{"id":"word_82b08b32-307d-45ba-b3e7-0dd73a01e57c","logicalWord":"Phone","physicalWord":"PHONE","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_4315d858-cfc9-40ab-b529-15728c77df28","logicalWord":"Rate","physicalWord":"RATE","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_f0e3d9d9-1602-4371-933b-d194cd5c4319","logicalWord":"Rating","physicalWord":"RATING","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_21104419-5d3f-4b2a-b1eb-85e46097f6b7","logicalWord":"Reservation","physicalWord":"RESERVATION","abbreviation":"","englishName":"","description":"A time-bound booking of a resource","enabled":true,"synonyms":[]},{"id":"word_fcde316f-a07e-46aa-8c6f-12aef2bd090f","logicalWord":"Resource","physicalWord":"RESOURCE","abbreviation":"","englishName":"","description":"A bookable unit within a venue","enabled":true,"synonyms":[]},{"id":"word_a519fb25-508c-4d24-80ad-144ee9bcee05","logicalWord":"Review","physicalWord":"REVIEW","abbreviation":"","englishName":"","description":"Feedback on a completed reservation","enabled":true,"synonyms":[]},{"id":"word_fea5db79-9c02-461c-a292-d72b6dcd96b6","logicalWord":"Reviewed","physicalWord":"REVIEWED","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_8a2815b1-4e5b-4585-ad08-e263dbcb20d3","logicalWord":"Starts","physicalWord":"STARTS","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_21cda063-c63e-4394-90f9-c4799a87af95","logicalWord":"Status","physicalWord":"STATUS","abbreviation":"","englishName":"","description":"Lifecycle state of a record","enabled":true,"synonyms":[]},{"id":"word_16c96dea-6694-4e1b-86ad-d2502f2cd902","logicalWord":"Timezone","physicalWord":"TIMEZONE","abbreviation":"","englishName":"","description":"","enabled":true,"synonyms":[]},{"id":"word_395f9fce-e32b-4fb4-9577-72e25576ec32","logicalWord":"Venue","physicalWord":"VENUE","abbreviation":"","englishName":"","description":"A physical location that hosts resources","enabled":true,"synonyms":[]}]},"domains":[{"id":"domain_2ecbb020-3a10-4b62-9389-4c3a1c875b6c","name":"Email","dataType":"varchar(255)","description":"Email address"},{"id":"domain_e193c16c-3682-44fb-b720-c17726e12e64","name":"Money","dataType":"decimal(12,2)","description":"Monetary value"},{"id":"domain_11b12959-956e-46c8-a56d-7dd9a71824e2","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-08-05T03:55:45.850Z"}