Skip to content

Renato/162 data model refactor - #172

Merged
Sectonic merged 80 commits into
core-refactorfrom
renato/162-data-model-refactor
Oct 8, 2025
Merged

Sectonic merged 80 commits into
core-refactorfrom
renato/162-data-model-refactor

Conversation

@renatodellosso

@renatodellosso renatodellosso commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor

Description

API routes and DB schema is done.

Resolves #162

Checklist

  • The ticket is mentioned above
  • The changes fulfill the success criteria of the ticket
  • The changes were self-reviewed
  • A review was requested

@netlify

netlify Bot commented Sep 18, 2025 •

Copy link
Copy Markdown

❌ Deploy Preview for hope-for-haiti failed. Why did it fail? →

Name Link
🔨 Latest commit bb4144a
🔍 Latest deploy log https://app.netlify.com/projects/hope-for-haiti/deploys/68cb6ae2db25530008ea2e96

@Sectonic Sectonic linked an issue Sep 18, 2025 that may be closed by this pull request
@Sectonic
Sectonic changed the base branch from main to core-refactor September 18, 2025 13:04

@Sectonic Sectonic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly a good idea to separate concerns might be to make partner a separate model and have all the partner stuff there.

Other than that the model looks good. You can start working on changing the API and services. I would recommend starting at donor offers. Also, the API routes do not follow proper REST fundamentals, so please try to clean up the routes if you see anything off.

Comment thread prisma/schema.prisma Outdated
Comment thread prisma/schema.prisma Outdated
Comment thread prisma/schema.prisma Outdated
Comment thread prisma/schema.prisma Outdated
@Sectonic

Copy link
Copy Markdown
Contributor

change the GeneralItem quantity to initialQuantity. This represents only the initial amunt a donor thought of sending

@renatodellosso

Copy link
Copy Markdown
Contributor Author

I've removed most of the now-obsolete code.

@renatodellosso renatodellosso left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review done

@Sectonic
Sectonic marked this pull request as ready for review October 8, 2025 03:47
@Sectonic
Sectonic merged commit 6c4bc5e into core-refactor Oct 8, 2025
@Sectonic
Sectonic deleted the renato/162-data-model-refactor branch October 8, 2025 03:47
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

Successfully merging this pull request may close these issues.

Core Data Model Refactoring

2 participants