https://dbdiagram.io/d/ Table "user" { "id" INT(10) [pk] "name" VARCHAR(20) "forename" VARCHAR(20) "password" VARCHAR(20) "token" VARCHAR(20) "is_admin" BIT } Table "event" { "id" INT(10) [pk] "name" VARCHAR(20) "priority" TINYINT(2) "is_full_day" BIT "start" TIME "end" TIME } Table "event_list" { "id" INT(10) [pk] "user_id" NT(10) "event_id" NT(10) "date" date } Ref:"event_list"."user_id" < "user"."id" Ref:"event_list"."event_id" < "event"."id"