15 lines
874 B
MySQL
15 lines
874 B
MySQL
|
|
-- v0.13.5 TASK-MKT-001: KYC vendeurs — Stripe Identity verification
|
||
|
|
-- Tracks seller identity verification status separately from Stripe Connect onboarding
|
||
|
|
|
||
|
|
ALTER TABLE seller_stripe_accounts
|
||
|
|
ADD COLUMN IF NOT EXISTS kyc_status VARCHAR(32) NOT NULL DEFAULT 'not_started',
|
||
|
|
ADD COLUMN IF NOT EXISTS kyc_verification_session_id VARCHAR(255),
|
||
|
|
ADD COLUMN IF NOT EXISTS kyc_verified_at TIMESTAMPTZ,
|
||
|
|
ADD COLUMN IF NOT EXISTS kyc_last_error TEXT;
|
||
|
|
|
||
|
|
-- Allowed kyc_status values: not_started, pending, verified, failed
|
||
|
|
CREATE INDEX IF NOT EXISTS idx_seller_stripe_accounts_kyc_status ON seller_stripe_accounts(kyc_status);
|
||
|
|
|
||
|
|
COMMENT ON COLUMN seller_stripe_accounts.kyc_status IS 'Identity verification status: not_started, pending, verified, failed';
|
||
|
|
COMMENT ON COLUMN seller_stripe_accounts.kyc_verification_session_id IS 'Stripe Identity VerificationSession ID';
|