示例#1
0
class BezorgingRelatedModel(BaseModel):
    __abstract__ = True

    groep_id = db.Column(
        db.ForeignKey(f"{Bezorging.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"),
        nullable=False,
    )
示例#2
0
class ChatRelatedMixin:
    chat_id = db.Column(
        db.ForeignKey(f"{Chat.__tablename__}.id",
                      ondelete="CASCADE",
                      onupdate="CASCADE"),
        nullable=False,
    )
示例#3
0
class EditieRelatedModel(BaseModel):
    __abstract__ = True

    editie_id = db.Column(
        db.ForeignKey(f"{Editie.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"),
        nullable=False,
    )
示例#4
0
class UserRelatedModel(BaseModel):
    __abstract__ = True

    user_id = db.Column(
        db.ForeignKey(f"{User.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"),
        nullable=False,
    )
示例#5
0
class WijkRelatedModel(BaseModel):
    __abstract__ = True

    straat_id = db.Column(
        db.ForeignKey(f"{Wijk.__tablename__}.id",
                      ondelete="CASCADE",
                      onupdate="CASCADE"),
        nullable=True,
    )
示例#6
0
class PlaatsRelatedModel(BaseModel):
    __abstract__ = True

    plaats_id = db.Column(
        db.ForeignKey(f"{Plaats.__tablename__}.id",
                      ondelete="CASCADE",
                      onupdate="CASCADE"),
        nullable=True,
    )
示例#7
0
class UserRelatedMixin:
    user_id = db.Column(
        db.ForeignKey(f"{User.__tablename__}.id", ondelete="CASCADE", onupdate="CASCADE"),
        nullable=False,
    )