场景描述
- 有多个停车场,里面有一些停车位
- 停车的时候,如果停车场没有满,可以拿到一张有效的停车券
- 停车的时候,如果停车场满了,则不能停车
- 取车的时候可以凭有效的券取到对应的车
- 如果券无效或已经被用过了,则不能取到对应的车
- 停车场有一个一般的停车小弟,会按照顺序停车
- 停车场有一个聪明的停车小弟,停车的时候会把车停到空车率最多的停车场
- 用户可以让停车小弟帮自己去停车取车,也可以自己停车取车
要求:
- 设计数据库,存储停车场和停车位的信息
延伸: 满足上述要求的基础上
- 停车场有一个停车经理,停车经理管理停车小弟,用户可以让停车经理帮忙停车取车