add user account type
This commit is contained in:
parent
64028a50e2
commit
77a8ff5cc0
25
lib/model/account.ts
Normal file
25
lib/model/account.ts
Normal file
@ -0,0 +1,25 @@
|
||||
export interface UserAccount {
|
||||
_id: string;
|
||||
userId: string;
|
||||
name: UserName;
|
||||
cart: string[];
|
||||
wallet: {
|
||||
currency: string;
|
||||
cash: number;
|
||||
purchasesAmount: number;
|
||||
spent: number;
|
||||
money: number;
|
||||
};
|
||||
status: "no";
|
||||
isDeleted: false;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
deletedAt: string;
|
||||
}
|
||||
|
||||
export interface UserName {
|
||||
firstname?: string;
|
||||
secondname?: string;
|
||||
middlename?: string;
|
||||
orgname?: string;
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
export type * from "./account";
|
||||
export type * from "./cart";
|
||||
export type * from "./discount";
|
||||
export type * from "./privilege";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@frontend/kitui",
|
||||
"version": "1.0.39",
|
||||
"version": "1.0.40",
|
||||
"description": "test",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user