We need to define the data model for the Altinn 3 register. Altinn 3 register is used for the following.
Mapping between Organization number and PartyID / PartyUID for organizations
Mapping between Person number and PartyID/PartUID for persons
Mapping between userName and PartyID/PartyUUD
Local copy of organization name
Local copy of person's name
Local copy of prefill data like addresses
Currently, all this data is taken from the Altinn 2 register.
In scope
We need to identify the amount of data in Altinn 2 that is needed to be stored in Altinn 3.
We should expect that when this happens, Altinn 3 Apps will still be using the same GetParty API in Register and be expecting at least the same amount of data as before. This data will be used for prefil in Apps
For performance reasons, there might be a need to switch early, before 2026, and stuff should work as before.
The following enities are exposed by register API in Altinn 3.
Beeing able to populate all current fields on the entities from the new data model is essential.
public class Party
{
public int PartyId { get; set; }
public Guid? PartyUuid { get; set; }
public PartyType PartyTypeName { get; set; }
public string OrgNumber { get; set; }
public string SSN { get; set; }
public string UnitType { get; set; }
public string Name { get; set; }
public bool IsDeleted { get; set; }
public Person Person { get; set; }
public Organization Organization { get; set; }
}
}
Description
We need to define the data model for the Altinn 3 register. Altinn 3 register is used for the following.
Currently, all this data is taken from the Altinn 2 register.
In scope
We need to identify the amount of data in Altinn 2 that is needed to be stored in Altinn 3.
We should expect that when this happens, Altinn 3 Apps will still be using the same GetParty API in Register and be expecting at least the same amount of data as before. This data will be used for prefil in Apps
For performance reasons, there might be a need to switch early, before 2026, and stuff should work as before.
The following enities are exposed by register API in Altinn 3.
Beeing able to populate all current fields on the entities from the new data model is essential.
See register repo
See register repo
See register repo
Analysis
Altinn 2 Datamodel
The following describes the central tables in the Altinn 2 data model.
Altinn 3 database design
Below is the suggested design. The principles followed are
Important
Conclusion
No response