diff --git a/src/main/resources/db/migration/V87__Create_innholdsfortegnelse.sql b/src/main/resources/db/migration/V87__Create_innholdsfortegnelse.sql new file mode 100644 index 000000000..f5a10378b --- /dev/null +++ b/src/main/resources/db/migration/V87__Create_innholdsfortegnelse.sql @@ -0,0 +1,11 @@ +CREATE TABLE klage.innholdsfortegnelse +( + id UUID PRIMARY KEY, + mellomlager_id TEXT NOT NULL, + hoveddokument_id UUID, + created TIMESTAMP NOT NULL, + modified TIMESTAMP NOT NULL, + CONSTRAINT fk_innholdsfortegnelse_dokument_under_arbeid + FOREIGN KEY (hoveddokument_id) + REFERENCES klage.dokument_under_arbeid (id) +);