Browse Source

2.0 数据库更新 user project

master
CODE 1 year ago
parent
commit
d928aad3bb
  1. 6
      api/app/lib/models/project.js

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

@ -33,7 +33,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
longitude: { longitude: {
type: DataTypes.STRING, type: DataTypes.DOUBLE,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
@ -42,7 +42,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
latitude: { latitude: {
type: DataTypes.STRING, type: DataTypes.DOUBLE,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
@ -69,7 +69,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
img: { img: {
type: array, type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,

Loading…
Cancel
Save