database migrated to POSTGRESQL

This commit is contained in:
2026-10-13 16:11:51 +03:30
parent 41ad8c1063
commit 514c3ccaf0
47 changed files with 1500 additions and 891 deletions
@@ -9,8 +9,13 @@ export class PersonInquiryRequestDto {
@Matches(/^\d{10}$/, { message: 'nationalCode must be exactly 10 digits' })
nationalCode!: string;
@ApiProperty({ example: '1378-11-24', description: 'Jalali birth date (YYYY-MM-DD)' })
@Matches(/^\d{4}-\d{2}-\d{2}$/, { message: 'birthDate must be in YYYY-MM-DD format' })
@ApiProperty({
example: '1378-11-24',
description: 'Jalali birth date (YYYY-MM-DD) or Jalali birth year (YYYY)',
})
@Matches(/^\d{4}(-\d{2}-\d{2})?$/, {
message: 'birthDate must be in YYYY or YYYY-MM-DD format',
})
@IsNotEmpty()
birthDate!: string;