feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student

This commit is contained in:
2026-07-05 19:31:03 +08:00
parent 92e6ba0e34
commit 881e9c6175
8 changed files with 95 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import { IsString, IsOptional, IsInt, IsEnum, Min } from 'class-validator';
import { IsString, IsOptional, IsInt, IsEnum, Min, IsNumber } from 'class-validator';
export class CreateRoomDto {
@IsString()
@@ -19,6 +19,14 @@ export class CreateRoomDto {
@IsOptional()
@IsString()
roomType?: string;
@IsOptional()
@IsString()
rentalCategory?: string;
@IsOptional()
@IsNumber()
monthlyRate?: number;
}
export class UpdateRoomDto {
@@ -50,4 +58,12 @@ export class UpdateRoomDto {
@IsOptional()
@IsEnum(['available', 'full', 'maintenance'])
status?: string;
@IsOptional()
@IsString()
rentalCategory?: string;
@IsOptional()
@IsNumber()
monthlyRate?: number;
}