-- 微信登录:客户 openId 唯一索引(允许多个 NULL) -- 执行前请确认索引不存在 CREATE UNIQUE INDEX IF NOT EXISTS uk_customer_wechat_openid ON t_customer (WechatOpenid);