lovart3/lib/db/migrations/0012_add_auth_settings.sql
2025-12-17 20:15:18 +08:00

11 lines
331 B
SQL

-- 创建认证配置表
CREATE TABLE IF NOT EXISTS "AuthSettings" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"dingTalkAppKey" text,
"dingTalkAppSecret" text,
"isDingTalkEnabled" boolean DEFAULT false NOT NULL,
"updatedAt" timestamp DEFAULT now() NOT NULL,
"updatedBy" uuid REFERENCES "User"("id")
);