mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-08 03:39:51 +08:00
9 lines
304 B
SQL
9 lines
304 B
SQL
-- Add optional expiry time for redeem codes themselves.
|
|
-- `validity_days` remains the subscription duration granted after redeeming.
|
|
|
|
ALTER TABLE redeem_codes
|
|
ADD COLUMN IF NOT EXISTS expires_at TIMESTAMPTZ;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_redeem_codes_expires_at
|
|
ON redeem_codes (expires_at);
|