Browse Source

model修改

master
wenlele 2 years ago
parent
commit
bde8fa7359
  1. 4
      api/app/lib/models/point.js
  2. 4
      api/app/lib/models/project.js

4
api/app/lib/models/point.js

@ -34,7 +34,7 @@ module.exports = dc => {
autoIncrement: false
},
longitude: {
type: DataTypes.INTEGER,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,
@ -43,7 +43,7 @@ module.exports = dc => {
autoIncrement: false
},
latitude: {
type: DataTypes.INTEGER,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,

4
api/app/lib/models/project.js

@ -52,7 +52,7 @@ module.exports = dc => {
autoIncrement: false
},
longitude: {
type: DataTypes.DOUBLE,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,
@ -61,7 +61,7 @@ module.exports = dc => {
autoIncrement: false
},
latitude: {
type: DataTypes.DOUBLE,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,

Loading…
Cancel
Save