Интегрирован wesp в сайт
CI / quality (push) Canceled after 0s

This commit is contained in:
влад
2026-07-17 12:57:18 +03:00
parent 5dfa06ddbe
commit 355c0ef9f1
883 changed files with 194576 additions and 177 deletions
+16
View File
@@ -0,0 +1,16 @@
from sqlalchemy import Boolean, Column, String
from app import db
from .base import TimestampMixin, default_uuid
class WebUser(db.Model, TimestampMixin):
"""Web users for zootech/admin authentication."""
__tablename__ = "web_user"
id = Column(String(36), primary_key=True, default=default_uuid)
login = Column(String(64), nullable=False, unique=True, index=True)
password_hash = Column(String(255), nullable=False)
is_superuser = Column(Boolean, nullable=False, default=False)
lab_access = Column(Boolean, nullable=False, default=False)