refactor: update type
This commit is contained in:
parent
b804fafc42
commit
032674f579
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Prisma, Status } from "@prisma/client";
|
||||
import { CustomerType, Prisma, Status } from "@prisma/client";
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
|
|
@ -27,14 +27,14 @@ const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
|||
|
||||
export type CustomerCreate = {
|
||||
status?: Status;
|
||||
customerType: string;
|
||||
customerType: CustomerType;
|
||||
customerName: string;
|
||||
customerNameEN: string;
|
||||
};
|
||||
|
||||
export type CustomerUpdate = {
|
||||
status?: "ACTIVE" | "INACTIVE";
|
||||
customerType?: string;
|
||||
customerType: CustomerType;
|
||||
customerName?: string;
|
||||
customerNameEN?: string;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue