Skip to content

Commit

Permalink
ADD: script for generating table for pvk document and index
Browse files Browse the repository at this point in the history
Co-authored-by: andregroseth <[email protected]>
  • Loading branch information
JeremiahUy and andregroseth committed Oct 16, 2024
1 parent 328f2d9 commit 245cec4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 245cec4

Please sign in to comment.