book: scaffold + ch00 (execution trail as spine) — evidence exp 8-31, round 3
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE "rd_experiments" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"experiment_name" text,
|
||||
"rational" text NOT NULL,
|
||||
"rational_embedding" vector(384),
|
||||
"details" text,
|
||||
"details_embedding" vector(384),
|
||||
"evaluation" text,
|
||||
"metrics" jsonb,
|
||||
"evolved_from" bigint,
|
||||
"start_ts" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"end_ts" timestamp with time zone,
|
||||
"git_branch" text NOT NULL,
|
||||
"experiment_ref_id" text,
|
||||
"mlruns_dir" text,
|
||||
"status" text DEFAULT 'starting' NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "rd_experiments" ADD CONSTRAINT "rd_experiments_evolved_from_rd_experiments_id_fk" FOREIGN KEY ("evolved_from") REFERENCES "public"."rd_experiments"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
||||
CREATE INDEX "rd_experiments_ref_id_idx" ON "rd_experiments" USING btree ("experiment_ref_id");--> statement-breakpoint
|
||||
CREATE INDEX "rd_experiments_evolved_from_idx" ON "rd_experiments" USING btree ("evolved_from");
|
||||
Reference in New Issue
Block a user