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.
This commit is contained in:
Philipinho
2023-08-22 19:48:57 +01:00
parent c0b2bc1f57
commit f11f9f6210
14 changed files with 282 additions and 52 deletions

View File

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

View File

@ -0,0 +1,4 @@
import { PartialType } from '@nestjs/mapped-types';
import { CreatePageDto } from './create-page.dto';
export class UpdatePageDto extends PartialType(CreatePageDto) {}