Files
Mycontent/soul-api/scripts/add-persons-token.sql
2026-03-14 14:37:17 +08:00

7 lines
438 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 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);