fixed a bug
This commit is contained in:
parent
8c5fdf0de1
commit
05d79eb5e8
@ -50,7 +50,7 @@ class Herausgeber(Base):
|
|||||||
__tablename__ = 'Herausgeber'
|
__tablename__ = 'Herausgeber'
|
||||||
|
|
||||||
ID: Mapped[int] = mapped_column(primary_key=True)
|
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')
|
werke: Mapped[List['Werk_Herausgeber']] = relationship(back_populates='herausgeber')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user