theonlysam / bookthecourt

MIT License
0 stars 0 forks source link

project setup and model creation #9

Closed theonlysam closed 1 year ago

theonlysam commented 1 year ago

Initial project creation and model setup without any makemigrations

theonlysam commented 1 year ago

Also will want to give the users the option of select the type of messages they will receive. e.g. when a booking is made an email is sent. When a booking is modified or released an email is sent. When the admin messages everyone an email is sent

Users should have the option to select if they want to receive the booking emails, update emails etc. Most likely a separate table to store the preferences for all members?

bbelderbos commented 1 year ago

Also will want to give the users the option of select the type of messages they will receive. e.g. when a booking is made an email is sent. When a booking is modified or released an email is sent. When the admin messages everyone an email is sent

Users should have the option to select if they want to receive the booking emails, update emails etc. Most likely a separate table to store the preferences for all members?

you could make those boolean fields on the Members table

theonlysam commented 1 year ago

The guest table is to store the members and invited guests that are attached to each booking or did I misunderstood?

bbelderbos commented 1 year ago

The guest table is to store the members and invited guests that are attached to each booking or did I misunderstood?

I thought we were going with something like this?

class Booking(models.Model):
    start_date = models.DateTimeField()
    end_date = models.DateTimeField()
    date_added = models.DateTimeField(auto_now_add=True)
    recurring = models.BooleanField(default=False)
    owner = models.ForeignKey(Member, ...)
    guests = models.ManyToManyField(Member)
theonlysam commented 1 year ago

Technically it could work I think, it would involve add the guests as members with the related information to the member table. As opposed to just adding the name of the guest that is invited. I see it as guests aren't members so maybe should be in the members tables. We could discuss at the next checkin