feat: add board rule toggles for approval and review requirements

This commit is contained in:
Abhimanyu Saharan
2026-02-12 23:05:33 +05:30
parent 8ff75f4c56
commit 855885afaf
12 changed files with 965 additions and 46 deletions

View File

@@ -29,6 +29,9 @@ class BoardBase(SQLModel):
target_date: datetime | None = None
goal_confirmed: bool = False
goal_source: str | None = None
require_approval_for_done: bool = True
require_review_before_done: bool = False
block_status_changes_with_pending_approval: bool = False
class BoardCreate(BoardBase):
@@ -68,6 +71,9 @@ class BoardUpdate(SQLModel):
target_date: datetime | None = None
goal_confirmed: bool | None = None
goal_source: str | None = None
require_approval_for_done: bool | None = None
require_review_before_done: bool | None = None
block_status_changes_with_pending_approval: bool | None = None
@model_validator(mode="after")
def validate_gateway_id(self) -> Self: