feat: Add asesor role with reports-only access - backend v1.0.10, frontend v1.0.16

This commit is contained in:
2025-11-20 16:23:52 -03:00
parent 5d2a96553e
commit 570cdb6739
4 changed files with 30 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ class User(Base):
username = Column(String(50), unique=True, index=True, nullable=False)
email = Column(String(100), unique=True, index=True)
password_hash = Column(String(255), nullable=False)
role = Column(String(20), nullable=False) # admin, mechanic
role = Column(String(20), nullable=False) # admin, mechanic, asesor
full_name = Column(String(100))
is_active = Column(Boolean, default=True)
created_at = Column(DateTime(timezone=True), server_default=func.now())