Skip to content

Commit

Permalink
refactored delivery_group
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanAuyeung committed Apr 10, 2024
1 parent 90d56b4 commit 8031967
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/schema/schema.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export enum DeliveryGroup {
Group1 = 'Group1',
Group2 = 'Group2',
Group3 = 'Group3',
Group4 = 'Group4',
};

export type User = {
id: string; // UUID
email: string;
Expand All @@ -20,7 +13,7 @@ export type User = {
num_pets: number; // Integer value containing number of pets
phone_numbers: string; // User's phone number for pick up orders
pet_prescription: string[]; // JSONB with pet_name as key and perscription as value
delivery_group: DeliveryGroup; // When someone's order will be delivered
delivery_group: number; // When someone's order will be delivered
};

export enum OrderStatus {
Expand Down Expand Up @@ -91,6 +84,6 @@ export type StorefrontButtons = {
};

export type DeliveryTime = {
delivery_group: DeliveryGroup;
delivery_group: number;
delivery_time: Date;
}

0 comments on commit 8031967

Please sign in to comment.