Admin onboarding + BrickGrid + workflow author fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user