Coverage for app/models/programBan.py: 100%
10 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-05 21:26 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-09-05 21:26 +0000
1from app.models import *
2from app.models.program import Program
3from app.models.user import User
4from app.models.note import Note
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)