diff --git a/frontend/app/types/company_data.ts b/frontend/app/types/company_data.ts new file mode 100644 index 0000000..9f0f1ca --- /dev/null +++ b/frontend/app/types/company_data.ts @@ -0,0 +1,8 @@ +export interface CompanyData { + id: number; + name: string; + address: string; + ico: number; + contact: number; + hiring: number; +}; \ No newline at end of file diff --git a/frontend/app/types/role.ts b/frontend/app/types/role.ts new file mode 100644 index 0000000..6ac3b52 --- /dev/null +++ b/frontend/app/types/role.ts @@ -0,0 +1,5 @@ +export enum Role { + STUDENT = 'STUDENT', + EMPLOYER = 'EMPLOYER', + ADMIN = 'ADMIN' +} \ No newline at end of file diff --git a/frontend/app/types/student_data.ts b/frontend/app/types/student_data.ts new file mode 100644 index 0000000..e6dcbc3 --- /dev/null +++ b/frontend/app/types/student_data.ts @@ -0,0 +1,7 @@ +export interface StudentData { + id: number; + user_id: number; + address: string; + personal_email: string; + study_field: string; +}; \ No newline at end of file diff --git a/frontend/app/types/user.ts b/frontend/app/types/user.ts new file mode 100644 index 0000000..5866619 --- /dev/null +++ b/frontend/app/types/user.ts @@ -0,0 +1,15 @@ +import type { Role } from "./role"; +import type { CompanyData } from "./company_data"; +import type { StudentData } from "./student_data"; + +export interface User { + id: number, + name: string, + email: string, + first_name: string, + last_name: string, + phone: string, + role: Role, + company_data?: CompanyData, + student_data?: StudentData, +}; \ No newline at end of file