feat: citizenship applications
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
export const CITIZENSHIP_APPLICATION_STATUSES = ["PENDING", "APPROVED", "REJECTED"] as const;
|
||||
export type CitizenshipApplicationStatus = typeof CITIZENSHIP_APPLICATION_STATUSES[number];
|
||||
|
||||
export const APPLICATION_TYPES = ["PREVIOUS_CITIZENSHIP", "BORN_IN_TERRITORY", "NATURALIZATION"] as const;
|
||||
export type ApplicationType = typeof APPLICATION_TYPES[number];
|
||||
|
||||
export const EYE_COLORS = [
|
||||
"Blue",
|
||||
"Green",
|
||||
"Brown",
|
||||
"Hazel",
|
||||
"Gray",
|
||||
"Amber",
|
||||
] as const;
|
||||
export type EyeColor = typeof EYE_COLORS[number];
|
||||
|
||||
export type CitizenshipApplication = {
|
||||
id: string;
|
||||
userId: string;
|
||||
surname: string;
|
||||
givenNames: string;
|
||||
sex: "MALE" | "FEMALE";
|
||||
birthDate: Date;
|
||||
applicationType: ApplicationType;
|
||||
previousCountry: string | null;
|
||||
previousRegion: string | null;
|
||||
birthRegion: string | null;
|
||||
naturalizationReason: string | null;
|
||||
address: string;
|
||||
height: string;
|
||||
eyeColor: string;
|
||||
status: CitizenshipApplicationStatus;
|
||||
rejectionReason: string | null;
|
||||
reviewedAt: Date | null;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
};
|
||||
Reference in New Issue
Block a user