feat: add council user role and restrict crawl runs

This commit is contained in:
codex committed 2026-11-12 09:35:26 +00:00
1 parent 59dcacbaff
commit 508aae4f8a
28 files changed
+217 -65

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ class CouncilCorrections(Base):
class SystemUser(Base):
__tablename__ = "system_users"
__table_args__ = (CheckConstraint("role IN ('admin', 'user')", name="ck_system_users_role"),)
__table_args__ = (CheckConstraint("role IN ('admin', 'user', 'council')", name="ck_system_users_role"),)
id: Mapped[int] = mapped_column(Integer, primary_key=True)
username: Mapped[str] = mapped_column(String(64), unique=True, nullable=False)