I have to make (high school project) booking/reservation system for fitness / gymnastics service company. Users (clients) can have:
- tickets - for 1 hour (on 1 day) - "single ticket"
- subscription - 1 hour a day for one, two or three months.
Overall, I have some ideas and plan how to make this application, but mainly need help with choosing best / optimal Django model fields for storing booking / reservation information. Assuming that there can be maximum N ( N ~ 15) persons in fitness club at the same time, I can sell limited number of tickets and subscriptions for particular day/hour.
Where (what Django model suits best) should I store booking / reservation informations, For example:
- User No. 0001 is taking fitness at Monday, 25 January, 2021, 5 pm to 6 pm (single ticket)
- User No. 0002 is taking fitness at Friday, 30 January, 2021, 11 am to 12 am (single ticket)
.....
- User No. 0055 is taking fitness every weekday from 3 pm to 4 pm for whole January and February (subscription)
.....
etc.
What Django model fields do You recommend in this case? I need help with models.py. Not the whole solution, but some recommendations and directions.
question from:
https://stackoverflow.com/questions/65859513/booking-system-for-fitness-gym-company-where-to-store-booking-data-what-dja 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…