Skip to content

Commit

Permalink
adding category to frontend too
Browse files Browse the repository at this point in the history
  • Loading branch information
ddusichka authored and matherg committed Nov 7, 2023
1 parent b8037de commit c2815b1
Showing 1 changed file with 38 additions and 37 deletions.
75 changes: 38 additions & 37 deletions client/src/types.tsx
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
export interface Gift {
ID : number
Name: string;
Price: number;
Link: string;
Description: string;
Demographic: string;
GiftCollections: GiftCollection[];
ID: number;
Name: string;
Price: number;
Link: string;
Description: string;
Demographic: string;
GiftCollections: GiftCollection[];
Category: string[];
}

export interface GiftRequest {
ID : number
CustomerId: number;
GiftResponseId: number | null;
RecipientName: string;
RecipientAge: number;
Occasion: string[];
RecipientInterests: string[];
BudgetMax: number;
BudgetMin: number;
GiftResponse: GiftResponse | null;
DateNeeded: string;
ID: number;
CustomerId: number;
GiftResponseId: number | null;
RecipientName: string;
RecipientAge: number;
Occasion: string[];
RecipientInterests: string[];
BudgetMax: number;
BudgetMin: number;
GiftResponse: GiftResponse | null;
DateNeeded: string;
}

export interface GiftCollection {
ID : number
CustomerId: number | null;
Customer: Customer;
CollectionName: string;
Gifts: Gift[];
ID: number;
CustomerId: number | null;
Customer: Customer;
CollectionName: string;
Gifts: Gift[];
}

export interface GiftResponse {
ID : number
GiftCollection: GiftCollection;
GiftCollectionId: number;
CustomMessage: string;
ID: number;
GiftCollection: GiftCollection;
GiftCollectionId: number;
CustomMessage: string;
}

export interface User {
ID : number
Email: string;
FirstName: string;
LastName: string;
Password: string;
ID: number;
Email: string;
FirstName: string;
LastName: string;
Password: string;
}

export interface Customer {
ID : number
UserId: number;
ID: number;
UserId: number;
}

export interface Admin {
ID : number
UserId: number;
}
ID: number;
UserId: number;
}

0 comments on commit c2815b1

Please sign in to comment.