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

8 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-10-24 20:53 +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)