generated from CMU-17-356/dronut-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
ODM
McSobkov edited this page Feb 28, 2022
·
6 revisions
{
"username" : String, // Unique identifier
“password” : String // Salted, Hashed Password.
“first_name” : String, // User's first name
"last_name" : String, // User's last name
"default_address" : ?String, // User's default address, Optional
"email" : ?String, // User's email, Optional
"phone_number" : String, // User's phone number
}
{
“username” : “iamauser”,
“password” : “984bade4809857d”,
“first_name” : “Joe”,
"last_name" : "Shmoe",
"default_address" : "5000 Forbes Ave, Pittsburgh Pa, 15213"
"email" : "[email protected]",
"phone_number" : "412-268-1234"
}
{
"id": Number, // Unique Identifier for each order
"customerId": Number, // ID of the ordering customer
"items": [{Number, Number}], // IDs of store items in the order and quantities {itemid, quantity}
"address": String, // Delivery Address
"timeStamp": Date // Time when the order is generated
}
{
"id": 42,
"customerId": 144,
"items": [{itemId: 1, quantity: 2}, {itemId: 2, quantity: 1}, {itemId: 3, quantity: 1}, {itemId: 4, quantity: 5}],
"address": "5032 Forbes Ave",
"timeStamp": "2022-1-15-1600EST"
}
{
"id": Number, // Unique Identifier for each drone
"nickname": ?String, // Fun names for drones, optional
"active": Boolean // Whether the drone is out on delivery
}
{
"id": 15,
"nickname": "gyro",
"active": true
}
{
"orderId": Number, // ID of the order concerned
"droneId": Number, // ID of the drone assigned for delivery
"status": Enum [Pending, Packing, InFlight, Complete] // The order's delivery status
}
{
"orderId": 10,
"droneId": 1,
"status": "InFlight"
}
{
"id" : Number, // Unique identifier for the store item
"name" : String, // Name of item
"price" : Number, // Price of item
"current_stock": Number // Current stock of item
}
{
"id" : 1,
"name" : "Glazed Donut",
"price" : 1.30,
"current_stock": 92
}