Coverage for app/models/eventViews.py: 100%
8 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-11-22 21:05 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-11-22 21:05 +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)