Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new model for snapshot #2329

Open
susilnem opened this issue Nov 27, 2024 · 0 comments
Open

Create a new model for snapshot #2329

susilnem opened this issue Nov 27, 2024 · 0 comments
Assignees

Comments

@susilnem
Copy link
Member

We need to create a new model called LocalUnitChangeRequest to track changes to the LocalUnit data.

The fields for the LocalUnitChangeRequest model should include:

  1. previous_data:

    • Type: JsonField (used to store the previous state of the fields)
  2. status:

    • Options:
      • PENDING
      • APPROVED
      • REVERT
  3. current_validator:

    • Type: Enum
    • Options:
      • LOCAL
      • REGIONAL
      • GLOBAL
  4. triggered_by:

    • Field to record who triggered the change request.
  5. triggered_at:

    • Timestamp for when the change was triggered.
  6. updated_by:

    • Field to record who made updates to the request.
  7. updated_at:

    • Timestamp for when the request was last updated.
  8. rejected_data:

    • Type: JsonField (stores data that was rejected during the request process)
  9. rejected_reason:

    • Field to describe why the request was rejected.

This model will help track and manage changes to LocalUnit data through different validation stages and actions.

@susilnem susilnem transferred this issue from IFRCGo/go-web-app Nov 27, 2024
@susilnem susilnem self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant