bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

BTR API - break out ownership and person in db #23291

Open kialj876 opened 2 weeks ago

kialj876 commented 2 weeks ago

Background

Currently we save the full submission as json in one table. This kept things simple for us while we were still gathering reqs around how we would use this data elsewhere.

Now that we know how minors/omits/search works and the btr-filing design is finished so it is a good time to split out the submission to make it more manageable for other things outside of the btr-filing. Almost everything will work the same concerning the btr-filing, but we want to save the ownership statements and person statements in separate tables. This should make several things simpler and easier when comparing search, finding groups of person or ownership records matching certain criteria (ie. for omit or minors or checking emails were triggered).

Solution

Below is the diagram the devs have discussed for the updated db structure. Ticket action items:

Future tech debt ticket ?

Screenshot 2024-09-13 at 2.49.34 PM.png
kialj876 commented 1 day ago

In DEV only. Don't want to interfere with Mags's sessions in the test env

Requires regression testing over btr-filing submissions and edits