added abwesenheiten table

This commit is contained in:
2025-04-02 10:44:23 +02:00
parent 8994b274e4
commit 0c33ae22bf

View File

@@ -70,6 +70,14 @@ CREATE TABLE "wochen_report" (
UNIQUE ("personal_nummer", "woche_start") UNIQUE ("personal_nummer", "woche_start")
); );
DROP TABLE IF EXISTS "abwesenheiten";
CREATE TABLE "abwesenheiten" (
"counter_id" bigserial PRIMARY KEY,
"card_uid" varchar(255),
"abwesenheit_typ" int2,
"datum" timestamptz(6) DEFAULT NOW()::DATE,
);
-- Adds crypto extension -- Adds crypto extension
CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION IF NOT EXISTS pgcrypto;