improvement: multi organization possibility implemented for users (owners and staffs)
This commit is contained in:
16
backend/src/modules/auth/dto/create-organization.dto.ts
Normal file
16
backend/src/modules/auth/dto/create-organization.dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { IsEmail, IsEnum, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class CreateOrganizationDto {
|
||||
@IsString()
|
||||
organizationName: string;
|
||||
|
||||
@IsEmail()
|
||||
organizationEmail: string;
|
||||
|
||||
@IsEnum(['CLINIC', 'LAB'])
|
||||
organizationType: 'CLINIC' | 'LAB';
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
planName?: string;
|
||||
}
|
||||
@@ -14,6 +14,9 @@ export class RegisterDto {
|
||||
@IsString()
|
||||
organizationName: string;
|
||||
|
||||
@IsEmail()
|
||||
organizationEmail: string;
|
||||
|
||||
@IsEnum(['CLINIC', 'LAB'])
|
||||
organizationType: 'CLINIC' | 'LAB';
|
||||
}
|
||||
Reference in New Issue
Block a user