summaryrefslogtreecommitdiff
path: root/html/app/models/todo.md
blob: defd21ec588b610c5e162702dd5fab08dbf77c9c (plain)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132


Privilege
---

Privilege::list_of_privileges( privilege_id )

Privilege::privileges_tree()





User
---

User::get_privileges


User::has_privilege( privilege_id )


User::reset_password()
    -> create otp
    -> send email


User::set_privilege( privilege_id )


User::track_action()
    -> user_id
    -> action : Contoller::method(args)
    -> timestamp



Lesson:
---

Lesson::create_lesson( POST )

Lesson::get_lesson( lesson_id )



Course
---

Course::create_course( POST )

Course::courses_tree()



Upgrades (??)
---


A1

A2 : includes A1

A3 : includes A1, A2

A4 : includes A1, A2, A3


A1  100
A2  200
A3  350
A4  500

B1  100
B2  200
B3  400
B4  800


:1 -> 0%
:2 -> 15%
:3 -> 20%




A1 -> A2
A1 -> A3
A1 -> A4

A2 -> A3
A2 -> A4

A3 -> A4

A1 < A2 < A3 < A4



B1 -> B2
B1 -> B3
B1 -> B4

B2 -> B3
B2 -> B4

B3 -> B4


A1+B1

A2+B2

A3+B3


A1+B1 -> A2+B2
A1+B1 -> A3+B3
A1+B1 -> A4+B4

A2+B2 -> A3+B3
A2+B2 -> A4+B4

A3+B3 -> A4+B4



UPGRADE PRICE = upper_priv_price - own_priv_price

buy 1 item : -0%
buy 2 items : -10%
buy 3 items : -15%