Skip to content

Commit

Permalink
added User and Clinic Types
Browse files Browse the repository at this point in the history
  • Loading branch information
riad40 committed May 31, 2023
1 parent e6814b2 commit 0175433
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/@types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,29 @@ type Option = {
avatar: string | null
}

export type { Product, Prescription, Patient, Option }
/** ============================ User && Clinic types ============================ */

type User = {
_id: string
fullName: string
email: string
password: string
avatar: string
speciality: string
dateOfBirth: string
inpe: string
phone: string
}

type Clinic = {
_id: string
name: string
address: string
city: string
phone: string
email: string
fax: string
owner: string
}

export type { Product, Prescription, Patient, Option, User, Clinic }

0 comments on commit 0175433

Please sign in to comment.