Admin onboarding + BrickGrid + workflow author fix

This commit is contained in:
Vladless
2026-04-17 10:45:30 +00:00
parent 11b5a8f4bd
commit 4cb84ceacc
13 changed files with 389 additions and 11 deletions
+10
View File
@@ -29,5 +29,15 @@ class Identity(DictLikeMixin, Base):
password_hash = Column(String(64), nullable=True)
email_verified = Column(Boolean, nullable=False, server_default=sql_text("false"))
is_admin = Column(Boolean, nullable=False, server_default=sql_text("false"))
onboarding_completed_at = Column(DateTime, nullable=True)
onboarding_stage = Column(String(32), nullable=True)
created_at = Column(DateTime, default=datetime.utcnow)
updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
@property
def onboarding_completed(self) -> bool:
return self.onboarding_completed_at is not None
@property
def password_set(self) -> bool:
return bool(self.password_hash)