Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
307 views
in Technique[技术] by (71.8m points)

python - Booking system for fitness / gym company - Where to store booking data, what django-models fields should I use?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...