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

10 statements  

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

1from app.models import * 

2from app.models.program import Program 

3from app.models.user import User 

4from app.models.note import Note 

5 

6class ProgramBan(baseModel): 

7 user = ForeignKeyField(User) 

8 program = ForeignKeyField(Program) 

9 endDate = DateField(null=True) 

10 banNote = ForeignKeyField(Note, null=False) 

11 unbanNote = ForeignKeyField(Note, null=True)