Conversation
Keeps User/Invite model and field names camelCase in JS while the underlying tables and columns follow snake_case DB convention.
…models Adds the core case-management domain per dsas.dbml: 7 enums and 7 models, following the camelCase-JS/snake_case-DB mapping convention established for User/Invite. Action.type uses the ACTION enum (dbml has this as a copy/paste bug pointing at action_status); BARRIER/ACTION enums are renamed to BarrierType/ActionType to avoid colliding with the Barrier/ Action model names, with @@Map to keep the underlying Postgres type names matching dbml.
…Barrier, Action, and Igac Bare Base-wrapper classes (constructor + ResponseSchema only, mirroring Invite's minimal style) so future route work has a model layer to build on. No derived business-logic getters or input-side schemas are added yet since that behavior isn't designed. Also re-exports the new Prisma enums from server/prisma/client.js so model files can import them alongside Prisma, consistent with the existing pattern.
Adds the Profile model and its 10 supporting enums plus a CrisisFlag enum for TriageAssessment.flags, matching dsas.dbml. income_sources, immediate_needs, and flags are modeled as Postgres enum arrays since their column names are plural against a singular enum type.
Bare Base-wrapper class (constructor + ResponseSchema only), mirroring the other new model wrappers. Re-exports the 10 Profile-related enums from server/prisma/client.js needed by its ResponseSchema. server/models/profile.js was being silently excluded by the .gitignore "profile*" rule (intended for Node clinic profiling output) -- added a scoped negation so the model file is tracked without weakening that rule.
…s not support null list/array columns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.