18 lines
416 B
Python
18 lines
416 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)
|