auto-account-machine/add-card-fields.sql
2025-11-19 16:48:59 +08:00

16 lines
716 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.

-- 添加卡片有效期和CVV字段到 windsurf_accounts 表
-- 执行时间: 2025-11-19
-- 作用: 保存完整的支付卡信息有效期月份、年份、CVV安全码
ALTER TABLE windsurf_accounts
ADD COLUMN payment_card_expiry_month VARCHAR(2) COMMENT '支付卡有效期-月份(01-12)',
ADD COLUMN payment_card_expiry_year VARCHAR(2) COMMENT '支付卡有效期-年份(26-30)',
ADD COLUMN payment_card_cvv VARCHAR(3) COMMENT '支付卡CVV安全码(3位数字)';
-- 添加索引(提升卡号查询性能,用于去重)
CREATE INDEX idx_payment_card_number ON windsurf_accounts(payment_card_number);
-- 验证字段和索引已添加
DESCRIBE windsurf_accounts;
SHOW INDEX FROM windsurf_accounts;