fix: 清掉无用接口和样式,并收紧登录与工号边界
This commit is contained in:
@@ -30,10 +30,9 @@ class CourseSync(Base):
|
||||
__tablename__ = "course_sync"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
last_employee_id: Mapped[str] = mapped_column(String(32), nullable=False, default="")
|
||||
last_employee_id: Mapped[str] = mapped_column(String(64), nullable=False, default="")
|
||||
finished_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
|
||||
next_allowed_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
|
||||
course_count: Mapped[int] = mapped_column(nullable=False, default=0)
|
||||
|
||||
|
||||
class FinishedCourse(Base):
|
||||
@@ -50,7 +49,7 @@ class FinishedCourse(Base):
|
||||
class Account(Base):
|
||||
__tablename__ = "accounts"
|
||||
|
||||
employee_id: Mapped[str] = mapped_column(String(32), primary_key=True)
|
||||
employee_id: Mapped[str] = mapped_column(String(64), primary_key=True)
|
||||
password_cipher: Mapped[str] = mapped_column(Text)
|
||||
credential_cipher: Mapped[str] = mapped_column(Text, default="")
|
||||
refresh_paused: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False, server_default=sql_false())
|
||||
|
||||
Reference in New Issue
Block a user