diff options
| author | Paul-Christian Volkmer | 2023-07-25 15:45:02 +0200 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2023-07-25 15:45:02 +0200 |
| commit | 2929bb26ac84d8a6c900e6f8692f1b84ecc39087 (patch) | |
| tree | 139a99cdd8f5e32f7ae6717fc4d50c7e9a1ccd6f /src/main/resources | |
| parent | 05149bac0b60423cda3865e3119ce87b9e8cba62 (diff) | |
Add request and status logging
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/application.yml | 4 | ||||
| -rw-r--r-- | src/main/resources/db/migration/mariadb/V0_1_0__Init.sql | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index da543bd..39acb37 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,4 +2,6 @@ spring: kafka: bootstrap-servers: ${app.kafka.servers} template: - default-topic: ${app.kafka.topic}
\ No newline at end of file + default-topic: ${app.kafka.topic} + flyway: + locations: "classpath:db/migration/{vendor}"
\ No newline at end of file diff --git a/src/main/resources/db/migration/mariadb/V0_1_0__Init.sql b/src/main/resources/db/migration/mariadb/V0_1_0__Init.sql new file mode 100644 index 0000000..0683195 --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V0_1_0__Init.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS request +( + id int auto_increment primary key, + uuid varchar(255) not null, + patient_id varchar(255) not null, + fingerprint varchar(255) not null, + status varchar(16) not null, + processed_at datetime default utc_timestamp() not null +);
\ No newline at end of file |
