Coverage for app/models/communityEngagementRequest.py: 100%
18 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.term import Term
3from app.models.user import User
5class CommunityEngagementRequest(baseModel):
6 user = ForeignKeyField(User)
7 term = ForeignKeyField(Term)
8 experienceName = CharField()
9 company = CharField()
10 companyAddress = CharField()
11 companyPhone = CharField()
12 companyWebsite = CharField()
13 supervisorPhone = CharField()
14 supervisorEmail = CharField()
15 totalHours = IntegerField()
16 weeks = IntegerField()
17 description = TextField()
18 filename = CharField(null=True)
19 status = CharField(constraints=[Check("status in ('Approved', 'Pending', 'Denied')")])