refactor: update type

This commit is contained in:
Methapon2001 2024-04-09 13:58:04 +07:00
parent b804fafc42
commit 032674f579

View file

@ -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;
};