chore: 清理敏感与开发文档,仅同步代码
- 永久忽略并从仓库移除 开发文档/ - 移除并忽略 .env 与小程序私有配置 - 同步小程序/管理端/API与脚本改动 Made-with: Cursor
This commit is contained in:
6
soul-api/scripts/add-persons-token.sql
Normal file
6
soul-api/scripts/add-persons-token.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- persons 表新增 token 字段(32 位唯一,@ 时存此值,小程序用此兑换 ckb_api_key)
|
||||
-- 执行:cd 项目根目录 && node .cursor/scripts/db-exec/run.js -f soul-api/scripts/add-persons-token.sql
|
||||
-- 或:mysql -u user -p db < soul-api/scripts/add-persons-token.sql
|
||||
|
||||
ALTER TABLE persons ADD COLUMN token VARCHAR(36) NOT NULL DEFAULT '' AFTER person_id;
|
||||
ALTER TABLE persons ADD UNIQUE INDEX idx_persons_token (token);
|
||||
Reference in New Issue
Block a user