Skip to content

Commit

Permalink
added delivery groups
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanAuyeung committed Apr 10, 2024
1 parent 19d0c3a commit baa299b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/schema/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
export enum DeliveryGroup {
Group1 = 'Group1',
Group2 = 'Group2',
Group3 = 'Group3',
Group4 = 'Group4',
};

export type User = {
id: string; // UUID
email: string;
Expand All @@ -13,13 +20,14 @@ 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
};

export enum OrderStatus {
Submitted = 'Submitted',
Complete = 'Confirmed',
Rejected = 'Rejected',
}
};

export type Order = {
id: number; // bigint generated by default as identity
Expand Down

0 comments on commit baa299b

Please sign in to comment.