Compare commits

..

No commits in common. "f2847e9454778f472239a33dc9fd44d8e7725bf9" and "0bfd6efd4a5330e2a598e330b95bf6b52f3f40a6" have entirely different histories.

2 changed files with 22 additions and 28 deletions

View File

@ -1,36 +1,30 @@
https://dbdiagram.io/d/ https://dbdiagram.io/d/
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]
}
Table "user" { Table "user" {
"id" bigint(20) [pk, not null, increment] "id" INT(10) [pk]
"forename" varchar(255) [default: NULL] "name" VARCHAR(20)
"name" varchar(255) [default: NULL] "forename" VARCHAR(20)
"is_admin" bit(1) [not null] "password" VARCHAR(20)
"password" varchar(255) [default: NULL] "token" VARCHAR(20)
"token" varchar(255) [default: NULL] "is_admin" BIT
} }
Table "user_event" { Table "event" {
"date" date [not null, default: `curdate()`] "id" INT(10) [pk]
"event_id" bigint(20) [not null] "name" VARCHAR(20)
"user_id" bigint(20) [not null] "priority" TINYINT(2)
"is_full_day" BIT
Indexes { "start" TIME
event_id [name: "FKspe8srtv69gubpphvrnd7wekt"] "end" TIME
user_id [name: "FKk3smcqwou8absq8qjt3wk4vy9"]
(date, event_id, user_id) [pk]
}
} }
Ref:"event"."id" < "user_event"."event_id" Table "event_list" {
Ref:"user"."id" < "user_event"."user_id" "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"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB