Skip to content

Structuring model for first aid guideline content and updates related domain models, request/response DTOs - #28

Merged
the-khiem7 merged 3 commits into
mainfrom
dev
Feb 1, 2026
Merged

Structuring model for first aid guideline content and updates related domain models, request/response DTOs#28
the-khiem7 merged 3 commits into
mainfrom
dev

Conversation

@the-khiem7

Copy link
Copy Markdown
Member

This pull request introduces a new structured model for first aid guideline content and updates related domain models, request/response DTOs, and configuration to support this change. It also adds JSON serialization handling for navigation properties to avoid circular references and cleans up some database schema and migration files.

First Aid Guideline Content Refactor:

  • Introduced the FirstAidContent and FirstAidStep classes to provide a structured format for guideline content, replacing the previous use of a plain string or object. All references to guideline content in domain models and DTOs have been updated to use this new type. [1] [2] [3] [4] [5]

  • Updated the FirstAidGuidelineConfiguration to handle JSON serialization/deserialization for the new FirstAidContent type, ensuring proper storage in the database as jsonb. [1] [2]

Serialization and Navigation Properties:

  • Added [JsonIgnore] attributes to navigation properties in SpeciesVenom and VenomType to prevent circular references and unnecessary data in API responses. [1] [2] [3] [4]

Database Schema and Migrations:

  • Removed unused or unnecessary columns (ApiKey, EndpointUrl, ModelParameters, and Confidence) from the database schema and updated corresponding migration and snapshot files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

These changes improve the structure, maintainability, and serialization safety of the first aid guideline system.

@the-khiem7
the-khiem7 merged commit d89371c into main Feb 1, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Feb 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant