fixed a bug

This commit is contained in:
eclipse 2025-08-14 22:42:36 +02:00
parent 8c5fdf0de1
commit 05d79eb5e8

View File

@ -50,7 +50,7 @@ class Herausgeber(Base):
__tablename__ = 'Herausgeber'
ID: Mapped[int] = mapped_column(primary_key=True)
Name: Mapped[str] = mapped_column(CheckConstraint('Herausgeber <> ""', name='HerausgeberNotEmptyConstraint'), nullable=False, unique=True)
Name: Mapped[str] = mapped_column(CheckConstraint('Name <> ""', name='HerausgeberNotEmptyConstraint'), nullable=False, unique=True)
werke: Mapped[List['Werk_Herausgeber']] = relationship(back_populates='herausgeber')