23 lines
1.1 KiB
SQL
23 lines
1.1 KiB
SQL
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"); |