Initial commit: HOA Financial Intelligence Platform MVP
Multi-tenant financial management platform for homeowner associations featuring: - NestJS backend with 16 modules (auth, accounts, transactions, budgets, units, invoices, payments, vendors, reserves, investments, capital projects, reports) - React + Mantine frontend with dashboard, CRUD pages, and financial reports - Schema-per-tenant PostgreSQL isolation with JWT-based tenant resolution - Docker Compose infrastructure (nginx, backend, frontend, postgres, redis) - Comprehensive seed data for Sunrise Valley HOA demo - 39 API endpoints with Swagger documentation - Double-entry bookkeeping with journal entries - Budget vs actual reporting and Sankey cash flow visualization Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
35
backend/src/modules/accounts/dto/create-account.dto.ts
Normal file
35
backend/src/modules/accounts/dto/create-account.dto.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { IsString, IsInt, IsOptional, IsBoolean, IsIn, IsUUID } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class CreateAccountDto {
|
||||
@ApiProperty({ example: 6600 })
|
||||
@IsInt()
|
||||
accountNumber: number;
|
||||
|
||||
@ApiProperty({ example: 'Equipment Repairs' })
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
description?: string;
|
||||
|
||||
@ApiProperty({ example: 'expense', enum: ['asset', 'liability', 'equity', 'income', 'expense'] })
|
||||
@IsIn(['asset', 'liability', 'equity', 'income', 'expense'])
|
||||
accountType: string;
|
||||
|
||||
@ApiProperty({ example: 'operating', enum: ['operating', 'reserve'] })
|
||||
@IsIn(['operating', 'reserve'])
|
||||
fundType: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
parentAccountId?: string;
|
||||
|
||||
@ApiProperty({ required: false, default: false })
|
||||
@IsBoolean()
|
||||
@IsOptional()
|
||||
is1099Reportable?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user