Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Entities #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

prathambatra
Copy link
Contributor

Signed-off-by: prathambatra [email protected]
fixed #4

Signed-off-by: prathambatra <[email protected]>
@boss-contributions-bot
Copy link

Thanks @prathambatra, for opening the pull request! 🙌

One of our mentors will review the pull request soon. ✅

Star ⭐ this project and tweet 🐦 about your contributions.

@prathambatra
Copy link
Contributor Author

@championswimmer unit test is falling because enum is not supported type in sqlite. I think createTestTypeORMConfig should also have type postgres.

@prathambatra
Copy link
Contributor Author

@championswimmer

@championswimmer
Copy link
Contributor

Please use simple-enum type it will work for both

typeorm/typeorm#3700

@championswimmer
Copy link
Contributor

also ShieldAgent.managerId should be proxy for the user.managerID

same for Superhero.handlerId

@championswimmer
Copy link
Contributor

also you can't have @joincolumn on both sides.

@prathambatra
Copy link
Contributor Author

also you can't have @joincolumn on both sides.

I haven't made bidirectional relations.

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.

create user, superhero, agent entities with relations
2 participants