CHANGE: added team page + working on function

This commit is contained in:
2025-02-24 22:11:28 +01:00
parent 5de50b6304
commit 0bb12318cc
17 changed files with 516 additions and 35 deletions

View File

@@ -41,6 +41,8 @@ CREATE TABLE "user_password" (
"zuletzt_geandert" timestamp(6) DEFAULT CURRENT_TIMESTAMP
);
-- update Funktion für pass_hash
CREATE OR REPLACE FUNCTION update_zuletzt_geandert()
RETURNS TRIGGER AS $$
BEGIN
@@ -57,6 +59,16 @@ BEFORE UPDATE ON user_password
FOR EACH ROW
EXECUTE FUNCTION update_zuletzt_geandert();
-- audittabelle für arbeitsstunden bestätigung
DROP TABLE IF EXISTS "buchung_wochen";
CREATE TABLE "buchung_wochen" (
"personal_nummer" int4,
"woche_start" date,
"buchungen" []bigserial,
"bestaetigt" bool DEFAULT FALSE,
);
-- Adds crypto extension
CREATE EXTENSION IF NOT EXISTS pgcrypto;