Files
docmost-ryan/server/src/core/page/dto/create-page.dto.ts
Philipinho f11f9f6210 Add new page module and services; refactor existing entities
- Introduced a new page module with associated services.
- Refactored TypeORM entities in user and workspace modules.
2023-08-22 19:48:57 +01:00

19 lines
271 B
TypeScript

import { IsOptional, IsString } from 'class-validator';
export class CreatePageDto {
@IsOptional()
title?: string;
@IsOptional()
content?: string;
@IsOptional()
parentId?: string;
@IsString()
creatorId: string;
@IsString()
workspaceId: string;
}