基线:鉴权会话+工作组+工作台三区修复+编排工作区+产品设计文档

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
2026-07-27 20:43:35 +08:00
co-authored by Claude Fable 5
parent 61fe181678
commit ac85ecf2ea
119 changed files with 16634 additions and 1246 deletions
@@ -0,0 +1,12 @@
CREATE TABLE "sys"."session" (
"id" text PRIMARY KEY NOT NULL,
"staff_id" text NOT NULL,
"issued_at" timestamp with time zone DEFAULT now() NOT NULL,
"expires_at" timestamp with time zone NOT NULL,
"last_seen_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "sys"."staff" ADD COLUMN "password_hash" text;--> statement-breakpoint
ALTER TABLE "sys"."session" ADD CONSTRAINT "session_staff_id_staff_id_fk" FOREIGN KEY ("staff_id") REFERENCES "sys"."staff"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "session_staff_idx" ON "sys"."session" USING btree ("staff_id");--> statement-breakpoint
CREATE INDEX "session_expires_idx" ON "sys"."session" USING btree ("expires_at");
@@ -0,0 +1,11 @@
CREATE TABLE "sys"."work_group" (
"id" text PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"owner_id" text NOT NULL,
"members" jsonb DEFAULT '{}'::jsonb NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "sys"."workflow" ADD COLUMN "work_group" jsonb;--> statement-breakpoint
ALTER TABLE "sys"."work_group" ADD CONSTRAINT "work_group_owner_id_staff_id_fk" FOREIGN KEY ("owner_id") REFERENCES "sys"."staff"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "work_group_owner_idx" ON "sys"."work_group" USING btree ("owner_id");
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+14
View File
@@ -71,6 +71,20 @@
"when": 1785096293279,
"tag": "0009_cute_bromley",
"breakpoints": true
},
{
"idx": 10,
"version": "7",
"when": 1785128271937,
"tag": "0010_clammy_fabian_cortez",
"breakpoints": true
},
{
"idx": 11,
"version": "7",
"when": 1785129993168,
"tag": "0011_little_pet_avengers",
"breakpoints": true
}
]
}