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.
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.