Coverage for src/auth/models/role_permission_model.py: 100%

1 from advanced_alchemy.mixins import AuditColumns

2 from sqlalchemy import ForeignKey

3 from sqlalchemy.orm import Mapped, mapped_column

4

5

6 class RolePermissionModel(AuditColumns):

7 __tablename__ = "roles_permissions"

8

9 role_id: Mapped[int] = mapped_column(ForeignKey("roles.id"), primary_key=True)

10 permission_id: Mapped[int] = mapped_column(ForeignKey("permissions.id"), primary_key=True)