+ 1

School Database System

Currently, my team started working on a school Database System as requested by a client. Everything is working so great but I doubt the professionalism in some of our implementation. - The tech used is python with django, webassembly and solidJS for web. - Kotlin with jetpack compose for Android/iOS. - kotlin with jetpack compose, C++ wt designer for gui The backend is 100% Django api rest framework, postgresql When we design a model for users, they either a teaching staff or student and we created another model for session and available courses. The doubt here is this 1. Is it more professional to make session, registered course a foreignKey with a user profile? 2. Or make them a ManyToMany relationship with the profile. Both works fine, but I think one should be more preferable. I'm afraid we'll be having database migration conflict in the future

15th Dec 2024, 2:10 PM
RuntimeTerror
RuntimeTerror - avatar
2 odpowiedzi
+ 5
ManyToMany is most likely the way you want to pursue.
15th Dec 2024, 7:30 PM
BroFar
BroFar - avatar
0
BroFar we actually made a poll, and I'm the only one who support foreignkey. Lol weird
17th Dec 2024, 6:18 AM
RuntimeTerror
RuntimeTerror - avatar