mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-24 05:38:52 +00:00
14 lines
405 B
Python
14 lines
405 B
Python
from app import db
|
|
from app.models.utils import BaseModel
|
|
|
|
|
|
class SectionAccessGroups(BaseModel):
|
|
__tablename__ = "sections_access_groups"
|
|
|
|
# Foreign keys
|
|
section_id = db.Column(db.Integer, db.ForeignKey("sections.id"))
|
|
access_group_id = db.Column(db.Integer, db.ForeignKey("access_groups.id"))
|
|
|
|
def __repr__(self):
|
|
return f"<s:{self.section_id} to a_g:{self.access_group_id}"
|