From 245cec47c40c01fb9733f8bb894c4b2a258c9186 Mon Sep 17 00:00:00 2001 From: JeremiahUy Date: Wed, 16 Oct 2024 14:32:34 +0200 Subject: [PATCH] ADD: script for generating table for pvk document and index Co-authored-by: andregroseth --- .../db/migration/V1.25__pvk_tabell.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql diff --git a/apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql b/apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql new file mode 100644 index 000000000..e6345ccdd --- /dev/null +++ b/apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql @@ -0,0 +1,42 @@ +create table if not exists pvk_dokument +( + id + uuid + primary + key, + etterlevelse_dokumentasjon_id + text + not + null, + status + text + not + null, + data + jsonb + not + null, + version + integer + not + null, + created_by + text + not + null, + created_date + timestamp + not + null, + last_modified_by + text + not + null, + last_modified_date + timestamp + not + null, + +); + +create index if not exists idx_pvk_etterlevelse_dokumentasjon_id on pvk_dokument (etterlevelse_dokumentasjon_id);