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

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

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

Loading…
Cancel
Save