From 5f8447498788f59517f2ac44aaaee25c89716f0a Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 17 Dec 2023 23:02:05 +0200 Subject: [PATCH] the old primary key sucked --- db_related/serber_sql.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db_related/serber_sql.sql b/db_related/serber_sql.sql index 93daf3c..56001a7 100644 --- a/db_related/serber_sql.sql +++ b/db_related/serber_sql.sql @@ -55,7 +55,9 @@ CREATE TABLE prefers(pref_UID SERIAL, -- week_day => varchar as {Mon, Tue, Wed}, Could probs just encode with 0 -> 6 -- tram_line => int ranging 1 -> 4 -- direction => Boolean, 1 full, 0 not as full -CREATE TABLE arrivals(time_of_day TIME, +CREATE TABLE arrivals( + a_id INTEGER, + time_of_day TIME, week_day INTEGER, tram_line INTEGER, direction BOOLEAN,