src/auth/tenant/dto/create-tenant.dto.ts
OmitType(TenantEntity, [
"clients",
"status",
] as const)
Properties |
|
Optional roles |
Type : Role[]
|
Decorators :
@IsOptional()
|
Defined in src/auth/tenant/dto/create-tenant.dto.ts:12
|
import { OmitType } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
import { Role } from "../../roles/role.enum";
import { TenantEntity } from "../entitites/tenant.entity";
export class CreateTenantDto extends OmitType(TenantEntity, [
"clients",
"status",
] as const) {
@IsOptional()
@IsString({ each: true })
roles?: Role[];
}