You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
379 B

from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.ext.declarative import declarative_base
# 创建一个基类
Base = declarative_base()
class Keyword(Base):
__tablename__ = 'Keyword'
id = Column(Integer, primary_key=True, autoincrement=True)
region = Column(String(255), nullable=False)
word = Column(String(255), nullable=False)