代码如下:
Base = declarative_base()
metadata = Base.metadata
session = None
class TCmcDatum(Base):
__tablename__ = 't_cmc_data'
__table_args__ = (
Index('i_cmc_data_ctime_name', 'c_time', 'slug', unique=True),
)
__table_args__ = {'schema':'crawler'}
id = Column(BIGINT(20), primary_key=True, comment='autoincr id')
c_time = Column(BIGINT(13), nullable=False, comment='created time')
当然,它解决不了问题
如何纠正?谢谢
目前没有回答
相关问题 更多 >
编程相关推荐