tvbox支持根据用户细分
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- ============================================
|
||||
-- 添加 TVBox 订阅 token 字段
|
||||
-- 版本: 004
|
||||
-- 创建时间: 2026-02-25
|
||||
-- ============================================
|
||||
|
||||
-- 为 users 表添加 tvbox_subscribe_token 字段
|
||||
ALTER TABLE users ADD COLUMN IF NOT EXISTS tvbox_subscribe_token TEXT;
|
||||
|
||||
-- 创建索引以加速 token 查询
|
||||
CREATE INDEX IF NOT EXISTS idx_users_tvbox_token ON users(tvbox_subscribe_token) WHERE tvbox_subscribe_token IS NOT NULL;
|
||||
|
||||
-- 添加注释
|
||||
COMMENT ON COLUMN users.tvbox_subscribe_token IS 'TVBox订阅token,用于用户独立订阅';
|
||||
Reference in New Issue
Block a user