Program/mooc/models/custom_reply.py
Basyc f4fc85872e
提交part4
Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com>
2025-01-05 13:05:16 +00:00

14 lines
456 B
Python

from sqlalchemy import Column, Integer
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class CustomReply(Base):
__tablename__ = 'custom_reply'
id = Column(Integer, primary_key=True, index=True)
rid = Column(Integer, nullable=False)
start1 = Column(Integer, nullable=False)
end1 = Column(Integer, nullable=False)
start2 = Column(Integer, nullable=False)
end2 = Column(Integer, nullable=False)