docs(skills): 添加 Better Auth 最佳实践与安全配置指南

This commit is contained in:
asgerzhou
2026-07-17 15:59:38 +08:00
commit 57628c04d6
72 changed files with 14239 additions and 0 deletions
@@ -0,0 +1,13 @@
CREATE TABLE "upload" (
"id" text PRIMARY KEY,
"original_name" text NOT NULL,
"oss_key" text NOT NULL UNIQUE,
"url" text NOT NULL,
"mime_type" text NOT NULL,
"size" integer NOT NULL,
"bucket" text NOT NULL,
"user_id" text,
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "upload" ADD CONSTRAINT "upload_user_id_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE SET NULL;