2021-11-07 19:04:54 +01:00
|
|
|
https://dbdiagram.io/d/
|
|
|
|
|
2021-11-29 15:49:07 +01:00
|
|
|
Table "event" {
|
|
|
|
"id" bigint(20) [pk, not null, increment]
|
|
|
|
"name" varchar(255) [default: NULL]
|
|
|
|
"start" time [default: NULL]
|
|
|
|
"end" time [default: NULL]
|
|
|
|
"is_full_day" bit(1) [not null]
|
|
|
|
"is_private" bit(1) [not null]
|
|
|
|
"priority" int(11) [default: NULL]
|
2021-11-04 10:20:08 +01:00
|
|
|
}
|
|
|
|
|
2021-11-29 15:49:07 +01:00
|
|
|
Table "user" {
|
|
|
|
"id" bigint(20) [pk, not null, increment]
|
2021-12-20 19:43:00 +01:00
|
|
|
"login" varchar(255) [default: NULL]
|
2021-11-29 15:49:07 +01:00
|
|
|
"forename" varchar(255) [default: NULL]
|
|
|
|
"name" varchar(255) [default: NULL]
|
|
|
|
"is_admin" bit(1) [not null]
|
2022-01-25 10:40:15 +01:00
|
|
|
"password" tinyblob [default: NULL]
|
|
|
|
"salt" tinyblob [default: NULL]
|
2021-11-29 15:49:07 +01:00
|
|
|
"token" varchar(255) [default: NULL]
|
2021-11-04 10:20:08 +01:00
|
|
|
}
|
|
|
|
|
2021-11-29 15:49:07 +01:00
|
|
|
Table "user_event" {
|
|
|
|
"date" date [not null, default: `curdate()`]
|
|
|
|
"event_id" bigint(20) [not null]
|
|
|
|
"user_id" bigint(20) [not null]
|
|
|
|
|
|
|
|
Indexes {
|
|
|
|
event_id [name: "FKspe8srtv69gubpphvrnd7wekt"]
|
|
|
|
user_id [name: "FKk3smcqwou8absq8qjt3wk4vy9"]
|
|
|
|
(date, event_id, user_id) [pk]
|
|
|
|
}
|
2021-11-04 10:20:08 +01:00
|
|
|
}
|
|
|
|
|
2021-11-29 15:49:07 +01:00
|
|
|
Ref:"event"."id" < "user_event"."event_id"
|
2021-12-20 19:43:00 +01:00
|
|
|
|
|
|
|
Ref:"user"."id" < "user_event"."user_id"
|