From b011fd09cd49ce91378d971202cfbf816dedd322 Mon Sep 17 00:00:00 2001 From: ISPyB-API Azure build Date: Fri, 3 Oct 2025 16:36:24 +0000 Subject: [PATCH] Update ISPyB ORM schema to database schema v4.9.0 Generated with sqlacodegen 3.0.0rc5 SQLAlchemy 2.0.43 --- src/ispyb/sqlalchemy/_auto_db_schema.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ispyb/sqlalchemy/_auto_db_schema.py b/src/ispyb/sqlalchemy/_auto_db_schema.py index 61d0b620..b904b542 100644 --- a/src/ispyb/sqlalchemy/_auto_db_schema.py +++ b/src/ispyb/sqlalchemy/_auto_db_schema.py @@ -1,4 +1,4 @@ -__schema_version__ = "4.8.0" +__schema_version__ = "4.9.0" import datetime import decimal from typing import List, Optional @@ -2235,6 +2235,12 @@ class Proposal(Base): state: Mapped[Optional[str]] = mapped_column( Enum("Open", "Closed", "Cancelled"), server_default=text("'Open'") ) + startDate: Mapped[Optional[datetime.datetime]] = mapped_column( + DateTime, comment="Start of the allocation period" + ) + endDate: Mapped[Optional[datetime.datetime]] = mapped_column( + DateTime, comment="End of the allocation period" + ) Person: Mapped["Person"] = relationship("Person", back_populates="Proposal") BLSampleGroup: Mapped[List["BLSampleGroup"]] = relationship( @@ -4507,6 +4513,10 @@ class Container(Base): source: Mapped[Optional[str]] = mapped_column( String(50), server_default=text("current_user()") ) + parentContainerLocation: Mapped[Optional[int]] = mapped_column( + INTEGER(10), + comment="Indicates where inside the parent container this container is located", + ) ContainerRegistry: Mapped["ContainerRegistry"] = relationship( "ContainerRegistry", back_populates="Container"