19 lines
503 B
Python
19 lines
503 B
Python
"""本地保存工号、加密密码和加密后的登录凭证。"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from sqlalchemy import String, Text
|
|
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
pass
|
|
|
|
|
|
class Account(Base):
|
|
__tablename__ = "accounts"
|
|
|
|
employee_id: Mapped[str] = mapped_column(String(32), primary_key=True)
|
|
password_cipher: Mapped[str] = mapped_column(Text)
|
|
credential_cipher: Mapped[str] = mapped_column(Text, default="")
|