Skip to content

Commit

Permalink
feat(type): order storage
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jan 5, 2023
1 parent 9f05cd0 commit 2824500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 1 addition & 7 deletions core/type/src/order.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import type {AlwatrDocumentObject} from './storage.js';
import type {User} from './user.js';

export type Order = AlwatrDocumentObject & {
user: User;
detail: OrderDetail;
itemList: Array<ProductValue>;
};

export type OrderDetail = {
description: string;
itemList: Array<ProductValue>;
};

export type Product = AlwatrDocumentObject & {
Expand Down
11 changes: 5 additions & 6 deletions core/type/src/user.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export type User = {
id: string;
identity: {
phoneNumber: string;
email?: string;
};
import type {AlwatrDocumentObject} from './storage.js';

export type User = AlwatrDocumentObject & {
name: string;
phoneNumber: string;
};

0 comments on commit 2824500

Please sign in to comment.