diff --git a/backend/migrations/2022-12-03-124501_init/up.sql b/backend/migrations/2022-12-03-124501_init/up.sql index ad3e1c0..49ae6d2 100644 --- a/backend/migrations/2022-12-03-124501_init/up.sql +++ b/backend/migrations/2022-12-03-124501_init/up.sql @@ -2,6 +2,7 @@ CREATE TABLE schoolyears ( id SERIAL PRIMARY KEY, untis_id INTEGER NOT NULL UNIQUE, name VARCHAR NOT NULL, + active BOOLEAN NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP ); @@ -15,7 +16,7 @@ CREATE TABLE tenants ( untis_id INTEGER NOT NULL UNIQUE, schoolyear_id INTEGER NOT NULL REFERENCES schoolyears(id), name VARCHAR NOT NULL, - active BOOLEAN NOT NULL DEFAULT FALSE, + active BOOLEAN NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP );