mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-21 04:01:03 +10:00
- Introduced a new page module with associated services. - Refactored TypeORM entities in user and workspace modules.
19 lines
271 B
TypeScript
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;
|
|
}
|