VPR-Docs/Docs/DB/schema.db
2022-01-25 10:40:15 +01:00

39 lines
981 B
Plaintext

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" {
"id" bigint(20) [pk, not null, increment]
"login" varchar(255) [default: NULL]
"forename" varchar(255) [default: NULL]
"name" varchar(255) [default: NULL]
"is_admin" bit(1) [not null]
"password" tinyblob [default: NULL]
"salt" tinyblob [default: NULL]
"token" varchar(255) [default: NULL]
}
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]
}
}
Ref:"event"."id" < "user_event"."event_id"
Ref:"user"."id" < "user_event"."user_id"