-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from navikt/ny-mottaker
Ny mottaker
- Loading branch information
Showing
33 changed files
with
1,916 additions
and
150 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
25 changes: 25 additions & 0 deletions
25
...n/resources/db/migration/produsent_model/V28__mottaker_altinn_ressurs_enkeltrettighet.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,25 @@ | ||
create table mottaker_altinn_ressurs | ||
( | ||
id bigserial primary key, | ||
notifikasjon_id uuid not null references notifikasjon on delete cascade, | ||
virksomhet text not null, | ||
ressursId text not null | ||
); | ||
|
||
create index mottaker_altinn_ressurs_notifikasjon_id_idx | ||
on mottaker_altinn_ressurs (notifikasjon_id); | ||
|
||
create unique index mottaker_altinn_ressurs_unique | ||
on mottaker_altinn_ressurs (notifikasjon_id, virksomhet, ressursId); | ||
|
||
create view mottakere_altinn_ressurs_json as | ||
select notifikasjon_id, | ||
json_agg( | ||
json_build_object( | ||
'@type', 'altinnRessurs', | ||
'virksomhetsnummer', virksomhet, | ||
'ressursId', ressursId | ||
) | ||
) as mottakere | ||
from mottaker_altinn_ressurs | ||
group by notifikasjon_id; |
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
Oops, something went wrong.