This commit is contained in:
Alex
2025-04-10 15:40:22 +02:00
parent 87f08dd3be
commit 18f5dadb06
48 changed files with 1650 additions and 981 deletions

20
frontend/src/app.d.ts vendored
View File

@@ -51,7 +51,6 @@ interface User {
last_name: string | '';
password: string | '';
phone: string | '';
notes: string | '';
address: string | '';
zip_code: string | '';
city: string | '';
@@ -60,11 +59,9 @@ interface User {
role_id: number | -1;
dateofbirth: string | '';
company: string | '';
profile_picture: string | '';
payment_status: number | -1;
membership: Membership;
bank_account: BankAccount;
licence: Licence;
membership: Membership | null;
bank_account: BankAccount | null;
licence: Licence | null;
notes: string | '';
}
@@ -80,9 +77,9 @@ interface Car {
end_date: string | '';
color: string | '';
licence_plate: string | '';
location: Location;
damages: Damage[] | [];
insurances: Insurance[] | [];
location: Location | null;
damages: Damage[] | null;
insurances: Insurance[] | null;
notes: string | '';
}
@@ -93,8 +90,11 @@ interface Location {
interface Damage {
id: number | -1;
opponent: User;
name: string | '';
opponent: User | null;
driver_id: number | -1;
insurance: Insurance | null;
date: string | '';
notes: string | '';
}