SMSTicket / sms-ticket

Android app which simplifies buying and using tickets for public transportation using SMS
Apache License 2.0
70 stars 30 forks source link

Refactor data model #4

Open davidvavra opened 9 years ago

davidvavra commented 9 years ago

Right now there are two entities - Cities and Tickets. But if there are more tickets in one city, the data multiplies. That's bad practice, it complicates the code and creates confusion. There should be three entities: Cities, Tickets in those cities and concrete instances of tickets in cities bought by the user.