Skip to content

Commit

Permalink
Correct types in cleanup-event-assoc models (optional/nullable)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 12, 2024
1 parent d415686 commit be4d46c
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10892,81 +10892,83 @@ class CleanupEventDatasetAssociation(Base):

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
dataset_id: Mapped[Optional[int]] = mapped_column(ForeignKey("dataset.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
dataset_id: Mapped[int] = mapped_column(ForeignKey("dataset.id"), index=True, nullable=True)


class CleanupEventMetadataFileAssociation(Base):
__tablename__ = "cleanup_event_metadata_file_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
metadata_file_id: Mapped[Optional[int]] = mapped_column(ForeignKey("metadata_file.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
metadata_file_id: Mapped[int] = mapped_column(ForeignKey("metadata_file.id"), index=True, nullable=True)


class CleanupEventHistoryAssociation(Base):
__tablename__ = "cleanup_event_history_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
history_id: Mapped[Optional[int]] = mapped_column(ForeignKey("history.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
history_id: Mapped[int] = mapped_column(ForeignKey("history.id"), index=True, nullable=True)


class CleanupEventHistoryDatasetAssociationAssociation(Base):
__tablename__ = "cleanup_event_hda_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
hda_id: Mapped[Optional[int]] = mapped_column(ForeignKey("history_dataset_association.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
hda_id: Mapped[int] = mapped_column(ForeignKey("history_dataset_association.id"), index=True, nullable=True)


class CleanupEventLibraryAssociation(Base):
__tablename__ = "cleanup_event_library_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
library_id: Mapped[Optional[int]] = mapped_column(ForeignKey("library.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
library_id: Mapped[int] = mapped_column(ForeignKey("library.id"), index=True, nullable=True)


class CleanupEventLibraryFolderAssociation(Base):
__tablename__ = "cleanup_event_library_folder_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
library_folder_id: Mapped[Optional[int]] = mapped_column(ForeignKey("library_folder.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
library_folder_id: Mapped[int] = mapped_column(ForeignKey("library_folder.id"), index=True, nullable=True)


class CleanupEventLibraryDatasetAssociation(Base):
__tablename__ = "cleanup_event_library_dataset_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
library_dataset_id: Mapped[Optional[int]] = mapped_column(ForeignKey("library_dataset.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
library_dataset_id: Mapped[int] = mapped_column(ForeignKey("library_dataset.id"), index=True, nullable=True)


class CleanupEventLibraryDatasetDatasetAssociationAssociation(Base):
__tablename__ = "cleanup_event_ldda_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
ldda_id: Mapped[Optional[int]] = mapped_column(ForeignKey("library_dataset_dataset_association.id"), index=True)
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
ldda_id: Mapped[int] = mapped_column(
ForeignKey("library_dataset_dataset_association.id"), index=True, nullable=True
)


class CleanupEventImplicitlyConvertedDatasetAssociationAssociation(Base):
__tablename__ = "cleanup_event_icda_association"

id: Mapped[int] = mapped_column(primary_key=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
cleanup_event_id: Mapped[Optional[int]] = mapped_column(ForeignKey("cleanup_event.id"), index=True)
icda_id: Mapped[Optional[int]] = mapped_column(
ForeignKey("implicitly_converted_dataset_association.id"), index=True
cleanup_event_id: Mapped[int] = mapped_column(ForeignKey("cleanup_event.id"), index=True, nullable=True)
icda_id: Mapped[int] = mapped_column(
ForeignKey("implicitly_converted_dataset_association.id"), index=True, nullable=True
)


Expand Down

0 comments on commit be4d46c

Please sign in to comment.