Skip to content

Commit

Permalink
add entities
Browse files Browse the repository at this point in the history
  • Loading branch information
aissatou-d committed Oct 31, 2021
1 parent d187747 commit ccfa266
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/app/entities/garageEntity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export interface Garage {
id: number;
name: string;
description: string;
email: string,
phone_number: string,
lat: number;
longitude: number;
logo: [];
bookings: [];
opening_hours: [];
payments: [];
address: string;
slotimes: [];
avis: Avis[]

}

export interface Avis{
id: number;
descriptionAvis: string;
dateCreated: Date;
garage: Garage;
votes: Vote[]

}

export interface Vote{
id: number;
nbVote: number
}
20 changes: 20 additions & 0 deletions src/app/entities/userEntity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export interface User{
id: number;
username: string;
email: string;
customRole: string;
client: Client
}

export interface Client{
firstname: string;
lastname: string;
phone_number: string;
address: string;
avatar: []
}

export interface AuthResponse{
jwt: string;
user: User
}

0 comments on commit ccfa266

Please sign in to comment.