Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

Charges - (New datamodel, part 1) Update database to new structure and naming #201

Open prtandrup opened 3 years ago

prtandrup commented 3 years ago

Description Given changed requirements for the charges datamodel, we need to update the database to cope with this. A new structure and naming convention will be applied here.

Preconditions

Notes

Acceptance criteria AC#1 SQL database on U + T reflects the new datamodel, using a new schema (not dbo) AC#2 SeedData and TestData scripts have been updated to match this as well and can be succesfully executed U + T.

bemwen commented 3 years ago

Quick and dirty drawing

image

bemwen commented 3 years ago

As per discussion at standup today, the following tables should be removed:

bemwen commented 3 years ago

MarketParticipant should be changed as follows to cohere to the new naming and enum strategy:

image

lasrinnil commented 3 years ago

Implmented and verified on U: image

Mech0z commented 3 years ago

Nit: Sometimes Id is written ID other times Id ChargePeriodDetails.Vatclassification should be VatClassification