| 3930 | """ |
| 3931 | |
| 3932 | class User(decl_base): |
| 3933 | __allow_unmapped__ = True |
| 3934 | |
| 3935 | __tablename__ = "user" |
| 3936 | |
| 3937 | id: Mapped[int] = mapped_column(primary_key=True) |
| 3938 | |
| 3939 | user_keyword_associations: Mapped[List[UserKeywordAssociation]] = ( |
| 3940 | relationship( |
| 3941 | back_populates="user", |
| 3942 | cascade="all, delete-orphan", |
| 3943 | ) |
| 3944 | ) |
| 3945 | |
| 3946 | keywords: AssociationProxy[list[str]] = association_proxy( |
| 3947 | "user_keyword_associations", "keyword" |
| 3948 | ) |
| 3949 | |
| 3950 | UserKeywordAssociation, Keyword = self._keyword_mapping( |
| 3951 | User, decl_base |