-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoockup-models.txt
54 lines (43 loc) · 1.87 KB
/
moockup-models.txt
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
//----------------------------------------------------------------------
//----------------------- ATTEMP -------------------------------
//----------------------------------------------------------------------
Attemp : {
hashes: [ string ],
score: int,
date-created: Date
}
//----------------------------------------------------------------------
//------------------------ ADMIN -------------------------------
//----------------------------------------------------------------------
Admin : {
email: string,
password: string,
isAdmin: true
}
//----------------------------------------------------------------------
//------------------------- USER -------------------------------
//----------------------------------------------------------------------
User : {
email: string,
password: string,
first-name: string,
second-name: string,
attemps: [ { number-of-attempt: int, attemp: Attemp } ],
ammount-of-attemps: int,
max-score: int
}
//----------------------------------------------------------------------
//-------------------- Competition -----------------------------
//----------------------------------------------------------------------
Competition : {
developed-year: Number,
developed-period: Number,
contestants: [ Contestan ],
ranking: [ Contestant ]
}
//----------------------------------------------------------------------
//--------------- History of cometititons ----------------------
//----------------------------------------------------------------------
Competitions-Record : {
record: [ Competition ]
}