Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
additional truck data and small seed updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rvennam987 committed Mar 27, 2017
1 parent 40144dc commit 195b213
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 37 deletions.
58 changes: 38 additions & 20 deletions common/models/shipment.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,65 @@
"name": "Shipment",
"base": "PersistedModel",
"idInjection": true,
"strictDelete": "true",
"options": {
"validateUpsert": true
},
"strictDelete": "true",
"mixins": {
"Isolated": {},
"Integrity": {}
},
"hidden": [
"demoId"
],
"properties": {
"status": {
"type": "string",
"required": true,
"default": "NEW"
},
"createdAt": {
"type": "date",
"required": true,
"default": "$now"
},
"updatedAt": {
"type": "date"
},
"deliveredAt": {
"type": "date"
},
"demoId": {
"type": "number",
"required": true
},
"estimatedTimeOfArrival": {
"type": "date",
"required": true
},
"fromId": {
"type": "number",
"required": true
},
"seed": {
"type": "boolean",
"required": false
},
"status": {
"type": "string",
"required": true,
"type": "number"
"default": "NEW"
},
"toId": {
"required": true,
"type": "number"
"type": "number",
"required": true
},
"demoId": {
"required": true,
"type": "number"
"updatedAt": {
"type": "date"
},
"averageSpeed": {
"type": "number",
"required": false
},
"shipmentHumidity": {
"type": "number",
"required": false
},
"shipmentTemp": {
"type": "number",
"required": false
}
},
"validations": [],
Expand Down Expand Up @@ -71,11 +94,6 @@
"foreignKey": "demoId"
}
},
"mixins": {
"Isolated": {},
"Integrity": {}
},
"hidden": ["demoId"],
"acls": [
{
"accessType": "*",
Expand Down
28 changes: 27 additions & 1 deletion seed/distributioncenter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"longitude": -111.90
},
"contact": {
"name": "Joseph Smith"
"name": "Andrew Rich"
}
},
{
Expand Down Expand Up @@ -37,5 +37,31 @@
"contact": {
"name": "Mary Joe"
}
},
{
"id": "4",
"address": {
"city": "San Francisco",
"state": "California",
"country": "US",
"latitude": 37.73,
"longitude": -122.44
},
"contact": {
"name": "Jane Joe"
}
},
{
"id": "5",
"address": {
"city": "Minot",
"state": "North Dakota",
"country": "US",
"latitude": 48.23,
"longitude": -101.29
},
"contact": {
"name": "Mindy Jackson"
}
}
]
16 changes: 8 additions & 8 deletions seed/retailer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
{
"id": "203",
"address": {
"city": "San Francisco",
"state": "California",
"city": "Phoenix",
"state": "Arizona",
"country": "US",
"latitude": 37.72,
"longitude": -122.44
"latitude": 33.44,
"longitude": -112.07
}
},
{
"id": "204",
"address": {
"city": "New York",
"state": "New York",
"city": "Boston",
"state": "Massachusetts",
"country": "US",
"latitude": 40.71,
"longitude": -74.00
"latitude": 42.31,
"longitude": -71.07
}
}
]
16 changes: 8 additions & 8 deletions seed/shipment.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
"fromId": "3",
"toId": "204",
"currentLocation": {
"city": "New York",
"state": "New York",
"city": "Richmond",
"state": "Virginia",
"country": "US",
"latitude": 40.71,
"longitude": -73.75
"latitude": 37.64,
"longitude": -77.51
},
"estimatedTimeOfArrival": "Thu, 24 Oct 2016",
"updatedAt": "Thu, 24 Oct 2016 12:15:37 GMT"
Expand All @@ -87,11 +87,11 @@
"fromId": "3",
"toId": "204",
"currentLocation": {
"city": "Albany",
"state": "New York",
"city": "Orlando",
"state": "Florida",
"country": "US",
"latitude": 42.15,
"longitude": -73.75
"latitude": 28.53,
"longitude": -81.37
},
"estimatedTimeOfArrival": "Thu, 28 Oct 2016",
"updatedAt": "Thu, 27 Oct 2016 12:15:37 GMT"
Expand Down

0 comments on commit 195b213

Please sign in to comment.