forked from ytgov/sfa-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add CSFA accommodations section to student application blob.
Decide to standardize spelling in back end, because I don't want to propagate the typos. I'd rather require the front-end be fixed to match.
- Loading branch information
1 parent
dad3023
commit 8f28861
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// TODO: question whether this should be in the database at all. | ||
// And if so, why is it its own table? | ||
enum AccommodationTypes { | ||
LIVING_AT_PARENTS = 1, | ||
LIVING_ON_OWN = 2, | ||
BOTH = 3, | ||
} | ||
|
||
export default class AccommodationType { | ||
id: number | ||
description: string | ||
isActive: boolean | ||
|
||
constructor({ | ||
id, | ||
description, | ||
isActive, | ||
}: { | ||
id: number | ||
description: string | ||
isActive: boolean | ||
}) { | ||
this.id = id | ||
this.description = description | ||
this.isActive = isActive | ||
} | ||
|
||
// not in database | ||
static readonly Types = AccommodationTypes | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters