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