-- 微信小程序点餐专用表:结构与存量 store_* 一致,表名前缀 wechat_store_* -- 与 APP(alien-store 使用 store_*)数据物理隔离;用户 / 商户(门店主表) / 优惠券主数据仍共用原库中原表。 -- 执行前请备份。MySQL 5.7+ 可用 LIKE 快速建表(不含数据)。 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_cart LIKE store_cart; CREATE TABLE IF NOT EXISTS wechat_store_table LIKE store_table; CREATE TABLE IF NOT EXISTS wechat_store_table_log LIKE store_table_log; 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_order_lock LIKE store_order_lock; 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;