Updated DB schema
This commit is contained in:
parent
9c996f603f
commit
1db6f0c6ee
@ -1,26 +1,30 @@
|
||||
Table "User" {
|
||||
"UID" NUMBER(3) [pk]
|
||||
https://dbdiagram.io/d/
|
||||
|
||||
|
||||
Table "user" {
|
||||
"id" INT(10) [pk]
|
||||
"name" VARCHAR(20)
|
||||
"forename" VARCHAR(20)
|
||||
"password" VARCHAR(20)
|
||||
"token" VARCHAR(20)
|
||||
"isAdmin" boolean
|
||||
"is_admin" BIT
|
||||
}
|
||||
|
||||
Table "Event" {
|
||||
"EID" NUMBER(3) [pk]
|
||||
Table "event" {
|
||||
"id" INT(10) [pk]
|
||||
"name" VARCHAR(20)
|
||||
"priority" NUMBER(1)
|
||||
"isFullDay" boolean
|
||||
"start" datetime
|
||||
"end" datetime
|
||||
"priority" TINYINT(2)
|
||||
"is_full_day" BIT
|
||||
"start" TIME
|
||||
"end" TIME
|
||||
}
|
||||
|
||||
Table "EventList" {
|
||||
"UID" NUMBER(3)
|
||||
"EID" NUMBER(3)
|
||||
Table "event_list" {
|
||||
"id" INT(10) [pk]
|
||||
"user_id" NT(10)
|
||||
"event_id" NT(10)
|
||||
"date" date
|
||||
}
|
||||
|
||||
Ref:"EventList"."UID" < "User"."UID"
|
||||
Ref:"EventList"."EID" < "Event"."EID"
|
||||
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 |
Loading…
Reference in New Issue
Block a user