-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: script for generating table for pvk document and index
Co-authored-by: andregroseth <[email protected]>
- Loading branch information
1 parent
328f2d9
commit 245cec4
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
apps/backend/src/main/resources/db/migration/V1.25__pvk_tabell.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |