164 new admin user table migrations#176
Merged
SamNie2027 merged 5 commits intomainfrom Feb 19, 2026
Merged
Conversation
Collaborator
|
Since the point of doing these migrations is to give us the ability to test things e2e, I would fix that import issue so that our application is more robust |
Collaborator
|
Also, to tests the users for now just comment out the annotations that are creating auth protection. |
Collaborator
|
If there are type/field errors that are happening with init, can you delete those lines in init? If it doesn't have to do with init though, that's okay. |
Collaborator
|
For the before and after running migrations can you specifically do this based off of wiping the database entirely? E.g. totally empty database then running migrations? I seem to have problems running them successfully and I'm approaching testing from a blank database. |
Author
|
will get done asap! |
…into 164-new-admin-user-table-migrations + Confirmation of working after dropping public schema in dev
Author
Collaborator
|
LGTM! |
SamNie2027
approved these changes
Feb 19, 2026
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.

ℹ️ Issue
Closes #164
📝 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.
Briefly list the changes made to the code:
✔️ 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.
Tables before and after running migrations

New Users Table

New Admins Table

Seeded info:

<img width="568" height="176" alt="Screenshot 2026-02-16 at 6 23 08 PM" src="https://github.com/user-attachments/assets/61f061b7-8545-49f0-9873-de3c2ea1
862e" />
Reverting migration:

POST: ADMINS

GET: ADMINS

DELETE: ADMINS

Protected by Auth so I didn't test
GET: USERS
DELETE: USERS
🏕️ (Optional) Future Work / Notes
Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!
Had to deal with duplicate type/field errors. Future runs of this may have issues if the migrations have been partially run before running these two. If running into such errors, reset db, run all migrations, and reseed.
Also, I didn't test the Users routes because they are protected by auth. I believe I need to go into cognito to get required access tokens, however I need to do more research into how that's done.
Lastly, one needs to import UsersModule into the AppModule to run tests on Users in the future. I didn't include importing it in this ticket because I felt like it was out of scope.