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