使用类图,分别对 Asg_RH 文档中 Make Reservation 用例以及 Payment 用例开展领域建模。然后,根据上述模型,给出建议的数据表以及主要字段,特别是主键和外键
注意事项
数据建模,为了简化描述仅需要给出表清单,例如:
Traveler(id/Key, name, email)
Favorite(id/Key, traveler/Fkey, hotel/Fkey)
Reservation(id/Key, traveler_id/Fkey, check_in_date, nights_num, adult_num, child_num, child_age, special_requirements, is_smoking)
Room(id/Key, order_by/Fkey, description/Fkey)
City(id/Key, name)
Hotel(id/Key, reservation_id/Fkey, location_id/Fkey, name, address, rating, information)
HotelRoomInformation(id/Key, hotel/Fkey, description/Fkey)
RoomDescription(id/Key, room_type/Fkey, num_of_people, price)
RoomType(id/Key, information)
Traveler(id/Key, name, email)
Payment(id/Key)
ReservationItem(id/Key, owner/Fkey, card/Fkey, payment/Fkey, title, price)
Card(id/Key, owner/Fkey, type/Fkey, number, secuirty_code, expiry_date, title, first_name, last_name, address1, address2, city, country_state, postcode, daytime_tel, evening_tel)
CardType(id/Key, bank)
使用 UML State Model,对每个订单对象生命周期建模
建模对象: 参考 Asg_RH 文档, 对 Reservation/Order 对象建模。
建模要求: 参考练习不能提供足够信息帮助你对订单对象建模,请参考现在 定旅馆 的旅游网站,尽可能分析围绕订单发生的各种情况,直到订单通过销售事件(柜台销售)结束订单。