From 912d18b1fad8505962f8ef51fc38b7415beaa88d Mon Sep 17 00:00:00 2001 From: Thomas Johansen Date: Thu, 21 Nov 2024 07:36:40 +0100 Subject: [PATCH] Lagt til kafka_keys_audit-tabell --- .../resources/db/migration/V2__kafka_keys_audit.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 apps/kafka-key-generator/src/main/resources/db/migration/V2__kafka_keys_audit.sql diff --git a/apps/kafka-key-generator/src/main/resources/db/migration/V2__kafka_keys_audit.sql b/apps/kafka-key-generator/src/main/resources/db/migration/V2__kafka_keys_audit.sql new file mode 100644 index 00000000..18da4b1c --- /dev/null +++ b/apps/kafka-key-generator/src/main/resources/db/migration/V2__kafka_keys_audit.sql @@ -0,0 +1,10 @@ +create table kafka_keys_audit +( + id bigint GENERATED ALWAYS AS IDENTITY, + identitetsnummer VARCHAR(255) NOT NULL, + status VARCHAR(50) NOT NULL, + detaljer VARCHAR(255), + tidspunkt TIMESTAMP(6) NOT NULL, + constraint kafka_keys_audit_pk primary key (id), + constraint kafka_keys_audit_identitet_fk foreign key (identitetsnummer) references Identitet (identitetsnummer) +); \ No newline at end of file