2021-11-07 19:04:54 +01:00
|
|
|
https://dbdiagram.io/d/
|
|
|
|
|
|
|
|
|
|
|
|
Table "user" {
|
|
|
|
"id" INT(10) [pk]
|
2021-11-04 10:20:08 +01:00
|
|
|
"name" VARCHAR(20)
|
|
|
|
"forename" VARCHAR(20)
|
|
|
|
"password" VARCHAR(20)
|
|
|
|
"token" VARCHAR(20)
|
2021-11-07 19:04:54 +01:00
|
|
|
"is_admin" BIT
|
2021-11-04 10:20:08 +01:00
|
|
|
}
|
|
|
|
|
2021-11-07 19:04:54 +01:00
|
|
|
Table "event" {
|
|
|
|
"id" INT(10) [pk]
|
2021-11-04 10:20:08 +01:00
|
|
|
"name" VARCHAR(20)
|
2021-11-07 19:04:54 +01:00
|
|
|
"priority" TINYINT(2)
|
|
|
|
"is_full_day" BIT
|
|
|
|
"start" TIME
|
|
|
|
"end" TIME
|
2021-11-04 10:20:08 +01:00
|
|
|
}
|
|
|
|
|
2021-11-07 19:04:54 +01:00
|
|
|
Table "event_list" {
|
|
|
|
"id" INT(10) [pk]
|
|
|
|
"user_id" NT(10)
|
|
|
|
"event_id" NT(10)
|
2021-11-04 10:20:08 +01:00
|
|
|
"date" date
|
|
|
|
}
|
|
|
|
|
2021-11-07 19:04:54 +01:00
|
|
|
Ref:"event_list"."user_id" < "user"."id"
|
|
|
|
Ref:"event_list"."event_id" < "event"."id"
|