refactor user accounts structure

This commit is contained in:
2026-03-16 00:33:40 +03:30
parent d2215b9f04
commit 0ad6a3200e
118 changed files with 18774 additions and 8764 deletions
@@ -1,15 +1,23 @@
import { ApiProperty } from '@nestjs/swagger'
import { ApiProperty, PartialType } from '@nestjs/swagger'
import { IsOptional, IsString } from 'class-validator'
export class CreateProviderDto {
@IsString()
@ApiProperty()
@ApiProperty({ required: true })
name: string
@IsOptional()
@IsString()
@ApiProperty()
code?: string
code: string
@IsString()
@ApiProperty({ required: true })
username: string
@IsString()
@ApiProperty({ required: true })
password: string
}
export class UpdateProviderDto extends CreateProviderDto {}
export class UpdateProviderDto extends PartialType(CreateProviderDto) {}