from models.base import db

CategoryObject = db.Table(
    "category_object",
    db.metadata,
    db.Column(
        "object_id",
        db.Integer,
        db.ForeignKey("object.object_id", ondelete="cascade"),
        primary_key=True,
        nullable=False
    ),
    db.Column(
        "category_id",
        db.Integer,
        db.ForeignKey("category.category_id", ondelete="cascade"),
        primary_key=True,
        nullable=False
    )
)
