Skip to content

Commit

Permalink
updated user types
Browse files Browse the repository at this point in the history
  • Loading branch information
ukataria committed Apr 10, 2024
1 parent 1464e77 commit d5657e6
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/types/user-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,36 @@ export interface User {
firstName: string;
lastName: string;
middleName?: string;
address: string;
address: address;
school: string;
birthdate: Date;
gradYear: number;
email: string;
phone: number;
yearsWithSwaliga: number;
ethnicity: Ethnicity;
gender: Gender;
guardian?: {
firstName: string,
lastName: string,
address: string,
address: address,
email: string,
phone: number,
}[];
password: string;
id: string;
assignedSurveys: string[];
completedResponses: string[];
}
}

interface address {
street: string;
city: string;
state: string;
zip: number;
country: string;
}

type Ethnicity = "Black or African American" | "Indigenous" | "Asian" | "White" | "Multiracial" | "LatinX/Latina/Latino/Latine" | OtherEthnicity
type Gender = "Male" | "Female" | "Other"
type OtherEthnicity = string

0 comments on commit d5657e6

Please sign in to comment.