VPR-Docs/Docs/DB/schema.db

36 lines
911 B
Plaintext
Raw Normal View History

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]
"forename" varchar(255) [default: NULL]
"name" varchar(255) [default: NULL]
"is_admin" bit(1) [not null]
"password" varchar(255) [default: NULL]
"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"
Ref:"user"."id" < "user_event"."user_id"