"""The venue's own role defaults (plan step 4.3). A role's default keys come from the manifests (Perm(..., roles=...)). A venue can change them in the manager (Settings → Operation → "What each role may do"): one row per key it adds to (granted=True) or removes from (granted=False) a role. role_template(role, db) applies them; new staff get the venue's version, and a change is also applied to every person who has that role (core/access/templates.py::set_role_keys). """ from sqlalchemy import Boolean, Column, String from database import Base class RolePermission(Base): __tablename__ = "role_permissions" role = Column(String, primary_key=True) key = Column(String, primary_key=True) granted = Column(Boolean, nullable=False)