Initial commit: Meshkee CMS API

NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
This commit is contained in:
Ali Reza
2026-07-21 17:52:36 +03:30
commit bb59d5e9ba
254 changed files with 37031 additions and 0 deletions
@@ -0,0 +1,29 @@
import { IsEmail, IsIn, IsOptional, IsString, Matches, MinLength } from 'class-validator';
import { ASSIGNABLE_TEAM_ROLES } from '../../auth/auth.types';
export class AddTeamMemberDto {
@IsString()
@Matches(/^\+[1-9]\d{6,14}$/)
cellNumber!: string;
@IsOptional()
@IsString()
@MinLength(8)
password?: string;
@IsString()
@MinLength(2)
firstName!: string;
@IsString()
@MinLength(2)
lastName!: string;
@IsOptional()
@IsEmail()
email?: string;
@IsString()
@IsIn([...ASSIGNABLE_TEAM_ROLES])
roleSlug!: string;
}
@@ -0,0 +1,8 @@
import { IsIn, IsString } from 'class-validator';
import { ASSIGNABLE_TEAM_ROLES } from '../../auth/auth.types';
export class UpdateTeamMemberDto {
@IsString()
@IsIn([...ASSIGNABLE_TEAM_ROLES])
roleSlug!: string;
}