Changes between Version 1 and Version 2 of VenueCapacity


Ignore:
Timestamp:
05/27/26 23:53:59 (5 hours ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VenueCapacity

    v1 v2  
    450450)
    451451VALUES (
    452     'Марко',
     452    'Александар',
    453453    'Стојановски',
    454     'marko.s@email.com',
    455     '070-123-456'
     454    'aleksandar@email.com',
     455    '070-111-222'
    456456);
    457457
     
    478478VALUES (
    479479    'Golden Palace',
    480     'Centar',
    481     'Skopje',
    482     'Ilindenska 15',
     480    'Центар',
     481    'Скопје',
     482    'Булевар Македонија 15',
    483483    150,
    484484    55.00,
    485485    1
    486486);
     487
     488INSERT INTO venue_booking (
     489    date,
     490    start_time,
     491    end_time,
     492    status,
     493    price,
     494    venue_id,
     495    wedding_id
     496)
     497VALUES (
     498    '2024-07-20',
     499    '18:00:00',
     500    '23:59:00',
     501    'CONFIRMED',
     502    4500.00,
     503    2,
     504    2
     505);
     506
     507INSERT INTO event (
     508    event_type,
     509    date,
     510    start_time,
     511    end_time,
     512    status,
     513    wedding_id
     514)
     515VALUES (
     516    'Reception',
     517    '2024-07-20',
     518    '18:00:00',
     519    '23:00:00',
     520    'SCHEDULED',
     521    2
     522);
     523
     524INSERT INTO guest (
     525    first_name,
     526    last_name,
     527    email,
     528    wedding_id
     529)
     530VALUES
     531(
     532    'James',
     533    'Peterson',
     534    'james@email.com',
     535    2
     536),
     537(
     538    'Elizabeth',
     539    'Martinez',
     540    'elizabeth@email.com',
     541    2
     542),
     543(
     544    'Robert',
     545    'Davis',
     546    'robert@email.com',
     547    2
     548);
     549
     550INSERT INTO attendance (
     551    status,
     552    table_number,
     553    role,
     554    guest_id,
     555    event_id
     556)
     557VALUES
     558(
     559    'CONFIRMED',
     560    1,
     561    'Guest',
     562    1,
     563    1
     564),
     565(
     566    'CONFIRMED',
     567    1,
     568    'Guest',
     569    2,
     570    1
     571),
     572(
     573    'CONFIRMED',
     574    2,
     575    'Guest',
     576    3,
     577    1
     578),
     579(
     580    'ATTENDED',
     581    1,
     582    'Guest',
     583    1,
     584    1
     585),
     586(
     587    'ATTENDED',
     588    1,
     589    'Guest',
     590    2,
     591    1
     592),
     593(
     594    'ATTENDED',
     595    2,
     596    'Guest',
     597    3,
     598    1
     599);
    487600}}}
    488601
     
    490603
    491604{{{
    492  venue_id | venue_name    | venue_capacity
    493 ----------+---------------+----------------
    494  2        | Golden Palace | 150
     605 venue_id | venue_name    | venue_capacity | wedding_id | organizer_name         | wedding_date | confirmed_attendees | actual_attendance | available_seats | occupancy_rate_percent | utilization_category | booking_status | booking_date
     606----------+---------------+----------------+------------+------------------------+--------------+---------------------+-------------------+-----------------+------------------------+---------------------+----------------+--------------
     607 2        | Golden Palace | 150            | 2          | Александар Стојановски | 2024-07-20   | 3                   | 3                 | 147             | 2.00                   | LOW                 | CONFIRMED      | 2024-07-20
    495608}}}
    496609
     
    498611
    499612* Confirmed Attendees:
    500   * guests marked as CONFIRMED
     613  * 3 guests with CONFIRMED attendance status
    501614
    502615* Actual Attendance:
    503   * guests marked as ATTENDED
     616  * 3 guests with ATTENDED status
    504617
    505618* Available Seats:
    506   * venue capacity minus confirmed attendees
     619  * 150 - 3 = 147
    507620
    508621* Occupancy Rate:
    509   * percentage of occupied seats
     622  * (3 / 150) × 100 = 2.00%
    510623
    511624* Utilization Category:
    512   * calculated based on occupancy thresholds
     625  * occupancy below 60% → LOW
     626
     627* Operational Insight:
     628  * the venue has very low occupancy utilization and significant unused capacity
    513629
    514630== Summary ==