Coverage for app/models/eventRsvp.py: 100%
11 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-06 19:35 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-06 19:35 +0000
1from datetime import datetime
2from app.models import*
3from app.models.user import User
4from app.models.event import Event
6class EventRsvp(baseModel):
7 user = ForeignKeyField(User)
8 event = ForeignKeyField(Event, backref="rsvps")
9 rsvpTime = DateTimeField(default=datetime.now)
10 rsvpWaitlist = BooleanField(default=False)
13 class Meta:
14 indexes = ( (('user', 'event'), True), )