Update: 将子项目从 submodule 转为完整内容
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- Migration 010: encrypted credentials for source connectors (feishu/notion/…).
|
||||
--
|
||||
-- Stores per-connector credentials as an opaque AES-256-GCM ciphertext blob
|
||||
-- (`payload_encrypted`); the service layer holds the encryption key and the
|
||||
-- JSON payload shape (e.g. `{ "app_id": ..., "app_secret": ... }`), exactly
|
||||
-- like the providers table's `api_key_encrypted`. Multiple credentials of the
|
||||
-- same kind are allowed (different tenants/accounts), so the key is a surrogate
|
||||
-- id, not the kind.
|
||||
--
|
||||
-- Additive: never touches 001_baseline (checksum stability).
|
||||
CREATE TABLE IF NOT EXISTS connector_credentials (
|
||||
id TEXT PRIMARY KEY,
|
||||
kind TEXT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
payload_encrypted TEXT NOT NULL,
|
||||
created_at INTEGER NOT NULL,
|
||||
updated_at INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_connector_credentials_kind ON connector_credentials(kind);
|
||||
Reference in New Issue
Block a user