| 27 | |
| 28 | |
| 29 | class A(Base): |
| 30 | __tablename__ = "a" |
| 31 | |
| 32 | id: Mapped[int] = mapped_column(primary_key=True) |
| 33 | data: Mapped[Optional[str]] |
| 34 | create_date: Mapped[datetime.datetime] = mapped_column( |
| 35 | server_default=func.now() |
| 36 | ) |
| 37 | |
| 38 | # collection relationships are declared with WriteOnlyMapped. There |
| 39 | # is no separate collection type |
| 40 | bs: WriteOnlyMapped[B] = relationship() |
| 41 | |
| 42 | |
| 43 | class B(Base): |
no test coverage detected