brief-20/backend/src/modules/groups/dto/update-group.dto.ts
Avnyr 9f99b80784 feat: implement authentication and database modules with relations and group management
Added new authentication strategies (JWT and GitHub OAuth), guards, and controllers. Implemented database module, schema with relations, and group management features, including CRD operations and person-to-group associations. Integrated validation and CORS configuration.
2025-05-15 17:09:36 +02:00

27 lines
455 B
TypeScript

import { IsString, IsUUID, IsObject, IsOptional } from 'class-validator';
/**
* DTO for updating an existing group
*/
export class UpdateGroupDto {
/**
* The name of the group
*/
@IsOptional()
@IsString()
name?: string;
/**
* The ID of the project this group belongs to
*/
@IsOptional()
@IsUUID()
projectId?: string;
/**
* Metadata for the group
*/
@IsOptional()
@IsObject()
metadata?: Record<string, any>;
}