增加科目表的id
This commit is contained in:
@@ -48,8 +48,12 @@ class Tea(Base):
|
||||
#科目表
|
||||
class Sub(Base):
|
||||
__tablename__ = 'subject'
|
||||
id = Column(Integer
|
||||
, primary_key=True
|
||||
, nullable=False
|
||||
, autoincrement=True
|
||||
, comment='id')
|
||||
name = Column(String(50)
|
||||
, primary_key=True
|
||||
,nullable=False
|
||||
,comment='科目名字')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user