initial: standalone repo from monorepo split
This commit is contained in:
9
src/expense/dto/create-expense.dto.ts
Normal file
9
src/expense/dto/create-expense.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { IsString, IsNumber, IsPositive, IsOptional, IsIn, MinLength } from 'class-validator';
|
||||
|
||||
export class CreateExpenseDto {
|
||||
@IsString() @IsIn(['utilities', 'supplies', 'salary', 'maintenance', 'transport', 'equipment', 'other']) category: string;
|
||||
@IsString() @MinLength(3) description: string;
|
||||
@IsNumber() @IsPositive() amount: number;
|
||||
@IsOptional() @IsString() expenseDate?: string;
|
||||
@IsOptional() @IsString() notes?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user