From 13c1ec45df5bdd33730d23dbe13cfe7bd153ab2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E8=BF=87?= Date: Sun, 5 Jan 2025 14:58:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20mooc/mod?= =?UTF-8?q?els/userapi.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mooc/models/userapi.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 mooc/models/userapi.py diff --git a/mooc/models/userapi.py b/mooc/models/userapi.py deleted file mode 100644 index 8de12a2..0000000 --- a/mooc/models/userapi.py +++ /dev/null @@ -1,31 +0,0 @@ -from sqlalchemy import Column, Integer, String, Text -from mooc.db.database import Base - - -# ImsUserapiCache模型用于映射数据库表ims_userapi_cache -class ImsUserapiCache(Base): - __tablename__ = "ims_userapi_cache" - - acid = Column(Integer, primary_key=True) - key = Column(String(32), nullable=False) - content = Column(Text, nullable=False) - lastupdate = Column(Integer, nullable=False) - - class Config: - orm_mode = True - - -# ImsUserapiReply模型用于映射数据库表ims_userapi_reply -class ImsUserapiReply(Base): - __tablename__ = "ims_userapi_reply" - - acid = Column(Integer, primary_key=True) - rid = Column(Integer, nullable=False) - description = Column(String(300), nullable=False) - apiurl = Column(String(300), nullable=False) - token = Column(String(32), nullable=False) - default_text = Column(String(100), nullable=False) - cachetime = Column(Integer, nullable=False) - - class Config: - orm_mode = True \ No newline at end of file