Skip to content

Commit 7e82ef4

Browse files
committed
added authentication, may not work
1 parent 24615d3 commit 7e82ef4

File tree

14 files changed

+4742
-0
lines changed

14 files changed

+4742
-0
lines changed

arduino/.gitkeep

Whitespace-only changes.

web/.env.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
NODE_ENV=development
2+
API_PREFIX=/api
3+
APP_PORT=8080
4+
DATABASE_URL=mysql://dev:dev@localhost:3306/turbo_switch
5+
JWT_SECRET=1234
6+
CAS_SERVICE=https://etu.utt.fr/dummyurl

web/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
dbml/
3+
.env
4+
.idea/

web/dbml/schema.dbml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//// ------------------------------------------------------
2+
//// THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
3+
//// ------------------------------------------------------
4+
5+
Table Borrow {
6+
id Int [pk, increment]
7+
userLogin String [not null]
8+
joyconsTaken Int [not null]
9+
openings Opening [not null]
10+
user User [not null]
11+
}
12+
13+
Table Opening {
14+
borrowId Int [not null]
15+
date DateTime [not null]
16+
type OpeningType [not null]
17+
borrow Borrow [not null]
18+
19+
indexes {
20+
(borrowId, type) [pk]
21+
}
22+
}
23+
24+
Table User {
25+
login String [pk]
26+
firstName String [not null]
27+
lastName String [not null]
28+
mail String [unique, not null]
29+
Borrow Borrow [not null]
30+
}
31+
32+
Enum OpeningType {
33+
Take
34+
Return
35+
}
36+
37+
Ref: Borrow.userLogin > User.login
38+
39+
Ref: Opening.borrowId > Borrow.id

0 commit comments

Comments
 (0)