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

16 lines
600 B
Python

from sqlalchemy import Column, Integer, String, SmallInteger
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class RuleKeyword(Base):
__tablename__ = "rule_keyword"
Id = Column(Integer, primary_key=True, index=True)
Rid = Column(Integer, nullable=False)
Uniacid = Column(Integer, nullable=False)
Module = Column(String(50), nullable=False)
Content = Column(String(255), nullable=False)
Type = Column(SmallInteger, nullable=False)
Displayorder = Column(SmallInteger, nullable=False)
Status = Column(SmallInteger, nullable=False)