class BezorgingRelatedModel(BaseModel): __abstract__ = True groep_id = db.Column( db.ForeignKey(f"{Bezorging.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=False, )
class ChatRelatedMixin: chat_id = db.Column( db.ForeignKey(f"{Chat.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=False, )
class EditieRelatedModel(BaseModel): __abstract__ = True editie_id = db.Column( db.ForeignKey(f"{Editie.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=False, )
class UserRelatedModel(BaseModel): __abstract__ = True user_id = db.Column( db.ForeignKey(f"{User.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=False, )
class WijkRelatedModel(BaseModel): __abstract__ = True straat_id = db.Column( db.ForeignKey(f"{Wijk.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=True, )
class PlaatsRelatedModel(BaseModel): __abstract__ = True plaats_id = db.Column( db.ForeignKey(f"{Plaats.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=True, )
class UserRelatedMixin: user_id = db.Column( db.ForeignKey(f"{User.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"), nullable=False, )