diff --git a/Docs/DB/schema.db b/Docs/DB/schema.db index dc025bc..e2c3e12 100644 --- a/Docs/DB/schema.db +++ b/Docs/DB/schema.db @@ -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" \ No newline at end of file +Ref:"event_list"."user_id" < "user"."id" +Ref:"event_list"."event_id" < "event"."id" \ No newline at end of file diff --git a/Docs/DB/schema.png b/Docs/DB/schema.png index b62747b..bd05eff 100644 Binary files a/Docs/DB/schema.png and b/Docs/DB/schema.png differ