BrandonTang89 / CrowdfundingForSchools

A Crowd Funding Platform For Schools
MIT License
0 stars 0 forks source link

Add ID for schools to allow duplicate names #14

Open TheMann77 opened 3 months ago

TheMann77 commented 3 months ago

There is currently no way of handling school name duplicates. We should either not allow duplicate names - and so give a suitable error message when creating a school if the name is already taken, or we should add a unique ID column to the schools database

TheMann77 commented 3 months ago

I have temporarily fixed the bug by not allowing duplicate names and showing an error message - however we should consider this again in future if we have time. I think ideally we would have a unique ID, allowing multiple schools with the same name which could be differentiated by location or a logo.