User id name User Name email email me com password 123 passToken passc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
User = {
id: '',
name: "User Name",
email: "email@me.com",
password: "123",
passToken: "",
passcode: "1234",
image: null,
phone: "000 5446 654",
currentOrder: {}, // ID
bookmarks: [], // ID
cafes: [1], // ID
orders: [], // IDs
payCards: []
};
Order = {
orderId: 1,
orderUser: "12", // ID
orderTitle: "",
orderCafe: "123", // ID
orderNumber: 84354302,
orderTime: null,
orderСomment: "Lorem ipsum pis.",
orderOrderedDate: "06/01/2015",
orderFinishTime: "34/53/3456", // время окончания подготовки заказа
orderCost: 9.50,
orderPaid: true/false, // оплачено
orderItemsList: [
{
item: "12", // ID
count: "3",
}
],
};
Item = {
itemId: "3", // ID
itemTitle: "Large Cappuccino",
itemDescription: "",
itemGroup: "4", // ID
itemComposition: "",
itemCost: 5.50,
itemIcon: "ion-coffee",
itemOptions: [ // вероятно придётся опции сделать отдельной моделью в базе
{
optionTitle: "Sugar",
optionVariants: [
{
variantTitle: "S",
variantCost: "",
variantDescription: "", // описание
variantAdditionalInfo: "" // дополнительная инфа маленьким шрифтом
}
]
},
};
Group = {
groupId: 1,
groupName: "hotDrinks", // work name
groupTitle: "Coffee / Hot Drinks", // Or Food, or wraps, or Cold Drinks
}
Cafe = {
cafeId: 1,
cafeTitle: "Dead Man Espresso",
cafeCity: "South Melbourne VIC 3205",
cafeAddress: "285-287 Coventry Street",
cafeCoordinates: {lat: "", lng: ""},
cafeImage: null,
cafeOffers: { // две акции как было в дизайне
offerSpecial: { // скидка 20% на заказ от $20
specialTitle: "Special",
specialOptions: {
discountPercent: 20,
orderCost: 20
}
},
offerLoyalty: { // 8й заказ бесплатно
loyaltyTitle: "Order Free",
loyaltyDescription: "",
loyaltyNumberOrderFree: 8,
loyaltyIcons: {
iconDefault: "ion-coffee",
iconLast: "ion-ios-circle-outline"
}
},
},
cafeMenu: [], // items IDs
};