Skip to content

Conversation

@chnnick
Copy link

@chnnick chnnick commented Feb 7, 2026

ℹ️ Issue

Closes #128

📝 Description

Write a short summary of what you added. Why is it important? Any member of C4C should be able to read this and understand your contribution -- not just your team members.

I added migrations to create the learner-info and volunteer-info tables. These tables both held the primary key appId and either the School enum or license varchar fields. I then imported the learner-info and volunteer-info entities into the data-source.ts file so they could be used in the migration

Briefly list the changes made to the code:

  1. Created create learner-info migration
  2. Created create volunteer-info migration
  3. Imported the learner-info and volunteer-info entities into the data-source.ts file so they could be used in the migration

✔️ Verification

What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.

\dt BEFORE Migration

Screenshot 2026-02-07 at 2 30 57 PM

\dt AFTER Migration

Screenshot 2026-02-07 at 2 33 00 PM

Postman Tests

Volunteer info successful POST request
Screenshot 2026-02-07 at 6 18 49 PM
Volunteer POST request error handling
Screenshot 2026-02-07 at 6 19 10 PM

Learner info successful POST request
Screenshot 2026-02-07 at 6 17 38 PM
Learner info POST request error handling
Screenshot 2026-02-07 at 6 18 18 PM

Details of tables

Screenshot 2026-02-07 at 2 33 40 PM

Seed info inside tables

Screenshot 2026-02-07 at 5 44 14 PM Screenshot 2026-02-07 at 5 44 03 PM

Running the command in down() in the migration undos the creations of the tables, \dt output:

Screenshot 2026-02-07 at 6 49 33 PM

🏕️ (Optional) Future Work / Notes

In order to run the Postman tests, I had to import the learner info and volunteer info controllers, services, and entities into the app.module.ts file. I researched online which said we may want to put the individual controllers and services into the applications.module.ts (as opposed to the app.module.ts file) to make it cleaner. I decided to not push this specific change since I felt like it is out of scope for the ticket, but can push if required.
Screenshot 2026-02-07 at 6 37 25 PM

I did not push the seed file changes but do trust I made them to test out the usability of the migrated-in newly created tables.
Screenshot 2026-02-07 at 6 39 48 PM
Screenshot 2026-02-07 at 6 39 53 PM

piersolh and others added 30 commits September 14, 2025 14:37
[Issue #16] -  create discipline entity in TypeORM
added testing
removed deprecated on update
adding user authentication by adding provider
deleted old migration file and used just the main one
rayyanmridha and others added 28 commits January 26, 2026 16:37
Renames the learner entity to Applicant and replaces id with appId as the identifier
…-pt-35-incorporating-client-feedback-on-which-fields-are-mutually-exclusive
Updated README to reflect new application name and setup instructions.
Formatted commands in the README for better readability.
Updated instructions for installing nx globally.
Updated README to include setup instructions for local development and database configuration.
Updated PostgreSQL installation instructions for Windows and MacOS.
Adds local development setup instructions as readme
Replace test email endpoint with a generic one
@chnnick
Copy link
Author

chnnick commented Feb 7, 2026

omg wrong branch

@chnnick chnnick closed this Feb 7, 2026
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.

10 participants