Coverage for app/models/eventViews.py: 100%
8 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-18 19:56 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-18 19:56 +0000
1from app.models import*
2from app.models.user import User
3from app.models.event import Event
4import datetime
6class EventView(baseModel):
7 user = ForeignKeyField(User)
8 event = ForeignKeyField(Event)
9 viewedOn = DateTimeField(default=datetime.datetime.now)