繁体   English   中英

活动预约系统php mysql

[英]Event reservation system php mysql

我想构建一个小型的事件注册工具。 用户应该能够在不同时间预订多个活动。

例子

Event1
    Time1 09:00 - 10:00 | Max Participants 12
    Time2 11:00 - 12:00 | Max Participants 9

Event2
    Time1 09:00 - 10:00 | Max Participants 6
    Time2 11:00 - 12:00 | Max Participants 9

我想我需要表格“活动”、“预订”和“预订中”。 但我不确定如何构建这些。

我的点子:

事件

event_id | host_id | date_of_event | title | description | time_1 | max_participants_1 | time_2 | max_participants_2

预订

reservation_id | user_id | date_of_reservation | event_1 | time_1 | event_2| time_2

预订中

reservation-in-progress_id | user_id | date_of_reservation | event_1 | time_1 | event_2| time_2 | time_end_of_blocked_reservation

您的想法是正确的,但无需进行第二张表的预订,您只需在事件或预订表中添加状态字段,即可将状态标记为进行中。

谢谢

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM