-- 小程序点餐专用表:与 APP 共库不同表,除用户/门店主数据(store_info)/优惠券定义外独立维护。 -- MySQL 5.7+:CREATE TABLE ... LIKE 复制列定义与索引;请在低峰执行并做好备份。 CREATE TABLE IF NOT EXISTS wechat_store_table LIKE store_table; CREATE TABLE IF NOT EXISTS wechat_store_cuisine LIKE store_cuisine; CREATE TABLE IF NOT EXISTS wechat_store_cuisine_category LIKE store_cuisine_category; CREATE TABLE IF NOT EXISTS wechat_store_cuisine_combo LIKE store_cuisine_combo; CREATE TABLE IF NOT EXISTS wechat_store_cart LIKE store_cart; CREATE TABLE IF NOT EXISTS wechat_store_order LIKE store_order; CREATE TABLE IF NOT EXISTS wechat_store_order_detail LIKE store_order_detail; CREATE TABLE IF NOT EXISTS wechat_store_order_lock LIKE store_order_lock; CREATE TABLE IF NOT EXISTS wechat_store_table_log LIKE store_table_log; CREATE TABLE IF NOT EXISTS wechat_store_order_change_log LIKE store_order_change_log; CREATE TABLE IF NOT EXISTS wechat_store_coupon_usage LIKE store_coupon_usage; CREATE TABLE IF NOT EXISTS wechat_store_payment_config LIKE store_payment_config; -- 上线后需将小程序侧菜单/桌台等基础数据同步或录入到 wechat_* 表(与 APP 侧无数据互通)。