堂食点单(基线方案)
使用场景: 构建首个餐厅点单系统的开发者
MenuItem (id, category_id, name, price, available)
Order (id, table_id, status, total, created_at)
OrderItem (id, order_id, menu_item_id, quantity, subtotal)
RestaurantTable (id, number, seats)
订单关联到餐桌;无需配送地址
这样组织的原因: 堂食是最清晰的起步 schema——订单属于一张餐桌,订单明细表解决订单与菜单项之间的多对多关系,这是最需要做对的核心关系。
