-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.go
66 lines (58 loc) · 2.44 KB
/
model.go
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
package main
type DefaultMachine struct {
ID string `firestore:"id,omitempty"`
Name string `firestore:"name,omitempty"`
TimeToReach int `firestore:"timeToReach,omitempty"`
Cost int `firestore:"cost,omitempty"`
NumberOfMaterialsToGive int `firestore:"numberOfMaterialsToGive,omitempty"`
IdMaterialToGive string `firestore:"idMaterialToGive,omitempty"`
}
type UserMachine struct {
ID string `firestore:"id,omitempty"`
Name string `firestore:"name,omitempty"`
TimeToReach int64 `firestore:"timeToReach,omitempty"`
NumberOfMaterialsToGive int `firestore:"numberOfMaterialsToGive,omitempty"`
IdMaterialToGive string `firestore:"idMaterialToGive,omitempty"`
Lvl int `firestore:"lvl,omitempty"`
WorkerId string `firestore:"workerId,omitempty"`
IdUser string `firestore:"idUser,omitempty"`
}
type DefaultWorker struct {
ID string `firestore:"id,omitempty"`
Name string `firestore:"name,omitempty"`
TimeCutBy float64 `firestore:"timeCutBy,omitempty"`
MaterialMultiplayer int `firestore:"materialMultiplayer,omitempty"`
Payment int `firestore:"payment,omitempty"`
}
type UserWorker struct {
ID string `firestore:"id,omitempty"`
Name string `firestore:"name,omitempty"`
TimeCutBy float64 `firestore:"timeCutBy,omitempty"`
MaterialMultiplayer int `firestore:"materialMultiplayer,omitempty"`
Payment int `firestore:"payment,omitempty"`
Lvl int `firestore:"lvl,omitempty"`
IsOnMachine bool `firestore:"isOnMachine,omitempty"`
IdUser string `firestore:"idUser,omitempty"`
}
type DefaultMaterial struct{
ID string `firestore:"id,omitempty"`
Value int `firestore:"value,omitempty"`
Name string `firestore:"name,omitempty"`
}
type UserMaterial struct{
ID string `firestore:"id,omitempty"`
Value int `firestore:"value,omitempty"`
Name string `firestore:"name,omitempty"`
NumberOf int64 `firestore:"numberOf,omitempty"`
DefaultMaterialId string `firestore:"defaultMaterialId,omitempty"`
IdUser string `firestore:"idUser,omitempty"`
}
type User struct{
IdUser string `firestore:"idUser,omitempty"`
Name string `firestore:"name,omitempty"`
Email string `firestore:"email,omitempty"`
Coins int `firestore:"coins,omitempty"`
LastUpdateMaterial int `firestore:"lastUpdateMaterial,omitempty"`
LastTimeOutOfApp int64 `firestore:"lastTimeOutOfApp,omitempty"`
LastPayment int64 `firestore:"lastPayment,omitempty"`
}