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);