Coverage for app/models/eventViews.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-07-11 17:51 +0000

1from app.models import* 

2from app.models.user import User 

3from app.models.event import Event 

4import datetime 

5 

6class EventView(baseModel): 

7 user = ForeignKeyField(User) 

8 event = ForeignKeyField(Event) 

9 viewedOn = DateTimeField(default=datetime.datetime.now)