bcgov / cas-registration

A web app for Registration in OBPS under the Clean Growth branch
Apache License 2.0
1 stars 1 forks source link

Build data models for Sales/Transfers #1520

Closed andrea-williams closed 1 week ago

andrea-williams commented 5 months ago

Describe the task

Create database migration with the models needed for the Sales & Transfers epic for Registration Part 2.

UPDATE Aug 14: we've chosen to switch to the Polymorphic Models approach, thus abandoning our earlier decision to store data as json.

Blocked - #1616 Blocking - #1709

Acceptance Criteria

Additional context

patrickisaac commented 5 months ago

Notes:

patrickisaac commented 4 months ago

Andrea will be creating an additional ticket related to this work.

andrea-williams commented 1 month ago

Ticket to be updated following dev discussion tomorrow

Sepehr-Sobhani commented 1 month ago

My thoughts:

Using Nullable Fields

Pros:

Using a JSON Field

Pros:

Cons:

Polymorphic Models

Each event type would have its own model inheriting from a base Event model. This allows each event type to have its own fields but still be treated as a type of Event. Pros:

Cons: