@@ -192,6 +192,33 @@ COMMENT ON COLUMN public."Sample"."externalId" IS 'Item ID in ISPyB';
192192COMMENT ON COLUMN public."Sample"."subLocation" IS ' Additional location, such as cassette slot or multi-sample pin position' ;
193193
194194
195+ --
196+ -- Name: SampleParentChild; Type: TABLE; Schema: public; Owner: sample_handling
197+ --
198+
199+ CREATE TABLE public ." SampleParentChild" (
200+ " parentId" integer NOT NULL ,
201+ " childId" integer NOT NULL ,
202+ " creationDate" timestamp with time zone DEFAULT now() NOT NULL
203+ );
204+
205+
206+ ALTER TABLE public." SampleParentChild" OWNER TO sample_handling;
207+
208+ --
209+ -- Name: COLUMN "SampleParentChild"."parentId"; Type: COMMENT; Schema: public; Owner: sample_handling
210+ --
211+
212+ COMMENT ON COLUMN public."SampleParentChild"."parentId" IS ' Sample(s) from which the child(ren) was derived from' ;
213+
214+
215+ --
216+ -- Name: COLUMN "SampleParentChild"."childId"; Type: COMMENT; Schema: public; Owner: sample_handling
217+ --
218+
219+ COMMENT ON COLUMN public."SampleParentChild"."childId" IS ' Sample(s) derived from parent(s)' ;
220+
221+
195222--
196223-- Name: Sample_sampleId_seq; Type: SEQUENCE; Schema: public; Owner: sample_handling
197224--
@@ -389,6 +416,8 @@ COPY public."Container" ("containerId", "shipmentId", "topLevelContainerId", "pa
3894161307 204 \N 1336 gridBox 4 2 \N f \N Grid_Box_01 \N \N f f \N 2025 - 01 - 10 08 :54 :42 .073855 + 00
3904171335 204 \N 1336 gridBox 4 3 \N f \N Grid_Box_02 \N \N f f \N 2025 - 01 - 10 08 :54 :42 .073855 + 00
391418648 97 \N 646 gridBox 4 1 \N f \N Grid_Box_02 \N \N f f \N 2025 - 01 - 10 08 :54 :42 .073855 + 00
419+ 1904 229 \N 1901 gridBox 4 1 \N f \N Grid_Box_01 \N \N f f \N 2025 - 01 - 10 08 :54 :42 .073855 + 00
420+ 1901 229 720 \N puck 4 \N \N f \N Puck_01 \N \N f f \N 2025 - 01 - 10 08 :54 :42 .073855 + 00
392421\.
393422
394423
@@ -415,6 +444,16 @@ COPY public."Sample" ("sampleId", "shipmentId", "proteinId", type, location, det
415444612 117 338108 grid \N {" buffer" : " " , " concentration" : " " , " foil" : " Quantifoil copper" , " film" : " Holey carbon" , " mesh" : " 200" , " hole" : " R 0.6/1" , " vitrification" : " GP2" , " vitrificationConditions" : " " } 788 3P_1 \N \N 2 2025 - 01 - 10 08 :54 :42 .073855 + 00
4164453 1 4407 sample 1 {" details" : null , " shipmentId" : 1 , " foil" : " Quantifoil copper" , " film" : " Holey carbon" , " mesh" : " 200" , " hole" : " R 0.6/1" , " vitrification" : " GP2" } 4 Sample_02 6186947 \N 1 2025 - 01 - 10 08 :54 :42 .073855 + 00
417446561 117 338108 grid 1 {" buffer" : " " , " concentration" : " " , " foil" : " Quantifoil copper" , " film" : " Holey carbon" , " mesh" : " 200" , " hole" : " R 0.6/1" , " vitrification" : " GP2" , " vitrificationConditions" : " " } 776 3P_1 6212665 \N 1 2025 - 01 - 10 08 :54 :42 .073855 + 00
447+ 1877 229 338108 grid 1 {" buffer" : " " , " concentration" : " " , " foil" : " Quantifoil copper" , " film" : " Holey carbon" , " mesh" : " 200" , " hole" : " R 0.6/1" , " vitrification" : " GP2" , " vitrificationConditions" : " " } 1904 3P_1 \N \N 1 2025 - 01 - 10 08 :54 :42 .073855 + 00
448+ \.
449+
450+
451+ --
452+ -- Data for Name: SampleParentChild; Type: TABLE DATA; Schema: public; Owner: sample_handling
453+ --
454+
455+ COPY public." SampleParentChild" (" parentId" , " childId" , " creationDate" ) FROM stdin;
456+ 612 1877 2025 - 03 - 13 09 :49 :12 .797986 + 00
418457\.
419458
420459
@@ -449,6 +488,7 @@ COPY public."TopLevelContainer" ("topLevelContainerId", "shipmentId", details, c
449488171 106 \N DLS- 4 dewar Dewar_06 20 \N f 1100af88- 2e0b- 46a7- 93f9- 2737a0b23d0c 2025 - 01 - 10 08 :54 :42 .073855 + 00
450489199 117 {} DLS- BI- 0020 dewar DLS- BI- 0020 72181 f 1100af88- 2e0b- 46a7- 93f9- 2737a0b23d0c 2025 - 01 - 10 08 :54 :42 .073855 + 00
451490221 \N {} DLS- BI- 0020 dewar DLS- BI- 0020 \N t 1100af88- 2e0b- 46a7- 93f9- 2737a0b23d0c 2025 - 01 - 10 08 :54 :42 .073855 + 00
491+ 720 229 {} DLS- BI- 0020 dewar DLS- BI- 0020 \N f 1100af88- 2e0b- 46a7- 93f9- 2737a0b23d0c 2025 - 01 - 10 08 :54 :42 .073855 + 00
452492\.
453493
454494
@@ -457,43 +497,43 @@ COPY public."TopLevelContainer" ("topLevelContainerId", "shipmentId", details, c
457497--
458498
459499COPY public .alembic_version (version_num) FROM stdin;
460- 7325165750bc
500+ 297144dfe234
461501\.
462502
463503
464504--
465505-- Name: Container_containerId_seq; Type: SEQUENCE SET; Schema: public; Owner: sample_handling
466506--
467507
468- SELECT pg_catalog .setval (' public."Container_containerId_seq"' , 1898 , true);
508+ SELECT pg_catalog .setval (' public."Container_containerId_seq"' , 2039 , true);
469509
470510
471511--
472512-- Name: PreSession_preSessionId_seq; Type: SEQUENCE SET; Schema: public; Owner: sample_handling
473513--
474514
475- SELECT pg_catalog .setval (' public."PreSession_preSessionId_seq"' , 349 , true);
515+ SELECT pg_catalog .setval (' public."PreSession_preSessionId_seq"' , 379 , true);
476516
477517
478518--
479519-- Name: Sample_sampleId_seq; Type: SEQUENCE SET; Schema: public; Owner: sample_handling
480520--
481521
482- SELECT pg_catalog .setval (' public."Sample_sampleId_seq"' , 1876 , true);
522+ SELECT pg_catalog .setval (' public."Sample_sampleId_seq"' , 2096 , true);
483523
484524
485525--
486526-- Name: Shipment_shipmentId_seq; Type: SEQUENCE SET; Schema: public; Owner: sample_handling
487527--
488528
489- SELECT pg_catalog .setval (' public."Shipment_shipmentId_seq"' , 271 , true);
529+ SELECT pg_catalog .setval (' public."Shipment_shipmentId_seq"' , 286 , true);
490530
491531
492532--
493533-- Name: TopLevelContainer_topLevelContainerId_seq; Type: SEQUENCE SET; Schema: public; Owner: sample_handling
494534--
495535
496- SELECT pg_catalog .setval (' public."TopLevelContainer_topLevelContainerId_seq"' , 719 , true);
536+ SELECT pg_catalog .setval (' public."TopLevelContainer_topLevelContainerId_seq"' , 825 , true);
497537
498538
499539--
@@ -616,6 +656,14 @@ ALTER TABLE ONLY public.alembic_version
616656 ADD CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num);
617657
618658
659+ --
660+ -- Name: SampleParentChild parent_child_pk; Type: CONSTRAINT; Schema: public; Owner: sample_handling
661+ --
662+
663+ ALTER TABLE ONLY public." SampleParentChild"
664+ ADD CONSTRAINT parent_child_pk PRIMARY KEY (" parentId" , " childId" );
665+
666+
619667--
620668-- Name: ix_Container_containerId; Type: INDEX; Schema: public; Owner: sample_handling
621669--
@@ -651,6 +699,20 @@ CREATE INDEX "ix_PreSession_preSessionId" ON public."PreSession" USING btree ("p
651699CREATE UNIQUE INDEX "ix_PreSession_shipmentId " ON public." PreSession" USING btree (" shipmentId" );
652700
653701
702+ --
703+ -- Name: ix_SampleParentChild_childId; Type: INDEX; Schema: public; Owner: sample_handling
704+ --
705+
706+ CREATE INDEX "ix_SampleParentChild_childId " ON public." SampleParentChild" USING btree (" childId" );
707+
708+
709+ --
710+ -- Name: ix_SampleParentChild_parentId; Type: INDEX; Schema: public; Owner: sample_handling
711+ --
712+
713+ CREATE INDEX "ix_SampleParentChild_parentId " ON public." SampleParentChild" USING btree (" parentId" );
714+
715+
654716--
655717-- Name: ix_Sample_containerId; Type: INDEX; Schema: public; Owner: sample_handling
656718--
@@ -746,6 +808,22 @@ ALTER TABLE ONLY public."PreSession"
746808 ADD CONSTRAINT " PreSession_shipmentId_fkey" FOREIGN KEY (" shipmentId" ) REFERENCES public." Shipment" (" shipmentId" );
747809
748810
811+ --
812+ -- Name: SampleParentChild SampleParentChild_childId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: sample_handling
813+ --
814+
815+ ALTER TABLE ONLY public." SampleParentChild"
816+ ADD CONSTRAINT " SampleParentChild_childId_fkey" FOREIGN KEY (" childId" ) REFERENCES public." Sample" (" sampleId" );
817+
818+
819+ --
820+ -- Name: SampleParentChild SampleParentChild_parentId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: sample_handling
821+ --
822+
823+ ALTER TABLE ONLY public." SampleParentChild"
824+ ADD CONSTRAINT " SampleParentChild_parentId_fkey" FOREIGN KEY (" parentId" ) REFERENCES public." Sample" (" sampleId" );
825+
826+
749827--
750828-- Name: Sample Sample_containerId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: sample_handling
751829--
0 commit comments