Skip to content

Object Data Model

Brian Luo edited this page Feb 16, 2022 · 3 revisions

Customer

{
    username: string,      // unique, url-safe
    password: string,      // hashed
    phoneNumber: number,   // limited in length
    emailAddress: string,  // use regex
    paymentMethod: ???,    // depends on API implementation
    savedPickupPoints: [PickupPoint]
    orders: [Order]
}
Clone this wiki locally