|
@@ -1,4 +1,4 @@
|
|
-from sqlalchemy import create_engine, Column, BigInteger, String, Text, DateTime, CHAR,Integer,Float, Enum, TinyInteger
|
|
|
|
|
|
+from sqlalchemy import create_engine, Column, BigInteger, String, Text, DateTime, CHAR,Integer,Float, Enum
|
|
|
|
|
|
from database import Base
|
|
from database import Base
|
|
from datetime import datetime
|
|
from datetime import datetime
|
|
@@ -10,7 +10,7 @@ class GovdataCity(Base):
|
|
name = Column(String(40), comment='省市区名称')
|
|
name = Column(String(40), comment='省市区名称')
|
|
parentid = Column(Integer, comment='上级ID')
|
|
parentid = Column(Integer, comment='上级ID')
|
|
shortname = Column(String(40), comment='简称')
|
|
shortname = Column(String(40), comment='简称')
|
|
- leveltype = Column(TinyInteger, comment='级别:0,中国;1,省分;2,市;3,区、县')
|
|
|
|
|
|
+ leveltype = Column(Integer, comment='级别:0,中国;1,省分;2,市;3,区、县')
|
|
citycode = Column(String(7), comment='城市代码')
|
|
citycode = Column(String(7), comment='城市代码')
|
|
zipcode = Column(String(7), comment='邮编')
|
|
zipcode = Column(String(7), comment='邮编')
|
|
lng = Column(String(20), comment='经度')
|
|
lng = Column(String(20), comment='经度')
|