Skip to content

Commit 5569396

Browse files
committed
move latlng within address
1 parent b09af5e commit 5569396

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

sequelize/data/entity.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
],
88
"city": "Baltimore",
99
"state": "MD",
10-
"zip": "12345"
10+
"zip": "12345",
11+
"latlng": [
12+
39.296399,
13+
-76.607842
14+
]
1115
},
12-
"latlng": [
13-
39.296399,
14-
-76.607842
15-
],
1616
"description": "Everything for the left handed man, woman, and child!"
1717
}
1818
]

sequelize/migrations/04-create-demo-entity.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ module.exports = {
1515
address: {
1616
type: Sequelize.JSON,
1717
},
18-
latlng: {
19-
type: Sequelize.JSON,
20-
},
2118
phone: {
2219
type: Sequelize.JSON,
2320
},

sequelize/seeders/04-demo-entity.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = {
1313
element.email = JSON.stringify(element.email);
1414
element.phone = JSON.stringify(element.phone);
1515
element.address = JSON.stringify(element.address);
16-
element.latlng = JSON.stringify(element.latlng);
1716
}
1817

1918
return queryInterface.bulkInsert('Entities', entities);

src/models/entity.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const entity = (sequelize, DataTypes) => {
1616
address: {
1717
type: DataTypes.JSON,
1818
},
19-
latlng: {
20-
type: DataTypes.JSON,
21-
},
2219
phone: {
2320
type: DataTypes.JSON,
2421
},

0 commit comments

Comments
 (0)