mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-24 13:49:26 +00:00
14 lines
420 B
Python
14 lines
420 B
Python
|
from app import db
|
||
|
from app.models.utils import BaseModel
|
||
|
|
||
|
|
||
|
class PermissionAccessGroups(BaseModel):
|
||
|
__tablename__ = "permissions_access_groups"
|
||
|
|
||
|
# Foreign keys
|
||
|
permission_id = db.Column(db.Integer, db.ForeignKey("permissions.id"))
|
||
|
access_group_id = db.Column(db.Integer, db.ForeignKey("access_groups.id"))
|
||
|
|
||
|
def __repr__(self):
|
||
|
return f"<p:{self.permission_id} to a_g:{self.access_group_id}"
|