add: create supplier
This commit is contained in:
15
src/users/dto/create-partner.dto.ts
Normal file
15
src/users/dto/create-partner.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class CreatePartnerDto {
|
||||
@IsNotEmpty()
|
||||
name: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
address: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
owner: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
npwp: string;
|
||||
}
|
||||
9
src/users/dto/create-supplier.dto.ts
Normal file
9
src/users/dto/create-supplier.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class CreateSupplierDto {
|
||||
@IsNotEmpty()
|
||||
name: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
code: string;
|
||||
}
|
||||
Reference in New Issue
Block a user