Skip to content

Commit

Permalink
Ny tabell for å lagre næringsundergrupper til en virksomhet (med hens…
Browse files Browse the repository at this point in the history
…yn til hoved næringsundergruppe)

Co-authored-by: Ingrid Fosså <ingrid.fossa@nav.no>
Co-authored-by: Nima Jimale <nima.jimale@nav.no>
  • Loading branch information
3 people committed Aug 17, 2023
1 parent 77dc8a4 commit eb8cc01
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
create table virksomhet_naringsundergrupper
(
id serial primary key,
virksomhet integer not null,
naeringskode1 varchar not null,
naeringskode2 varchar default null,
naeringskode3 varchar default null,
oppdateringsdato timestamp default null,
opprettet timestamp default current_timestamp,
constraint fk_virksomhet_naringsundergrupper_virksomhet foreign key (virksomhet) references virksomhet (id),
constraint fk_virksomhet_naringsundergrupper_naring foreign key (naeringskode1) references naring(kode),
constraint virksomhet_naringsundergrupper_unik unique (virksomhet)
);

0 comments on commit eb8cc01

Please sign in to comment.