Compare commits
2 Commits
0bfd6efd4a
...
f2847e9454
Author | SHA1 | Date | |
---|---|---|---|
f2847e9454 | |||
59f3728d6f |
@ -1,30 +1,36 @@
|
|||||||
https://dbdiagram.io/d/
|
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" {
|
Table "event" {
|
||||||
"id" INT(10) [pk]
|
"id" bigint(20) [pk, not null, increment]
|
||||||
"name" VARCHAR(20)
|
"name" varchar(255) [default: NULL]
|
||||||
"priority" TINYINT(2)
|
"start" time [default: NULL]
|
||||||
"is_full_day" BIT
|
"end" time [default: NULL]
|
||||||
"start" TIME
|
"is_full_day" bit(1) [not null]
|
||||||
"end" TIME
|
"is_private" bit(1) [not null]
|
||||||
|
"priority" int(11) [default: NULL]
|
||||||
}
|
}
|
||||||
|
|
||||||
Table "event_list" {
|
Table "user" {
|
||||||
"id" INT(10) [pk]
|
"id" bigint(20) [pk, not null, increment]
|
||||||
"user_id" NT(10)
|
"forename" varchar(255) [default: NULL]
|
||||||
"event_id" NT(10)
|
"name" varchar(255) [default: NULL]
|
||||||
"date" date
|
"is_admin" bit(1) [not null]
|
||||||
|
"password" varchar(255) [default: NULL]
|
||||||
|
"token" varchar(255) [default: NULL]
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref:"event_list"."user_id" < "user"."id"
|
Table "user_event" {
|
||||||
Ref:"event_list"."event_id" < "event"."id"
|
"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]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Ref:"event"."id" < "user_event"."event_id"
|
||||||
|
Ref:"user"."id" < "user_event"."user_id"
|
Binary file not shown.
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue
Block a user