UTC for registration

This commit is contained in:
Boris Milašinović
2026-04-20 00:09:10 +02:00
parent 6f56d107a2
commit b47ad41296
4 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ CREATE TABLE registration (
person_id INT NOT NULL,
sport_id INT NOT NULL,
event_id INT NOT NULL,
registered_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
registered_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (person_id) REFERENCES person(id) ON DELETE CASCADE,
FOREIGN KEY (sport_id) REFERENCES sport(id) ON DELETE CASCADE,