就业的model修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from util.database import Base,engine
|
from util.database import Base,engine
|
||||||
from sqlalchemy import Column,Integer,String,DATE,DATETIME,ForeignKey
|
from sqlalchemy import Column,Integer,String,DATE,DATETIME,ForeignKey,Numeric
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
class Employment_info(Base):
|
class Employment_info(Base):
|
||||||
@@ -38,7 +38,8 @@ class Employment_info(Base):
|
|||||||
,comment='就业公司地址'
|
,comment='就业公司地址'
|
||||||
)
|
)
|
||||||
|
|
||||||
salary = Column(Integer
|
salary = Column(Numeric(10,2)
|
||||||
|
,nullable=False
|
||||||
,comment='薪资'
|
,comment='薪资'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user