feat: add TypeScript interfaces for CompanyData, StudentData, Role, and User

This commit is contained in:
2025-10-21 14:09:27 +02:00
parent 60a49431dc
commit 2cca658a50
4 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export interface CompanyData {
id: number;
name: string;
address: string;
ico: number;
contact: number;
hiring: number;
};

View File

@@ -0,0 +1,5 @@
export enum Role {
STUDENT = 'STUDENT',
EMPLOYER = 'EMPLOYER',
ADMIN = 'ADMIN'
}

View File

@@ -0,0 +1,7 @@
export interface StudentData {
id: number;
user_id: number;
address: string;
personal_email: string;
study_field: string;
};

View File

@@ -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,
};