duanfen1312 2014-01-10 10:24
浏览 24
已采纳

一个简单的会议CRUD(创建/读取/更新/删除)PHP应用程序:最佳实践

In a PHP application i am developing, I would like to know which way of the following is a good approach to create a meeting based on availability.

Option 1 - I am planing to keep predefined types of time slots such as, 8:00 am to 9:00 am (SLOT 1), 9:00 am to 10.00 am (SLOT 2) and etc. in a separate table called meeting_intervals

Option 2 - Letting a user to provide a FROM and TO time. i.e From 8:00 am to 9:30 pm. i feel this way its much more flexible.

Which of this can be useful in the long term plan ?

  • 写回答

2条回答 默认 最新

  • doushan6161 2014-01-10 11:01
    关注

    Both options are viable in my opinion, given that a user can book more than one slot at a time in option 1. Furthermore, if you decide for option 1 I suggest to use shorter intervals (maybe 15 minutes) so you can have flexibility and simplicity. What are you most concerned with?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度