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.
22 lines
360 B
TypeScript
22 lines
360 B
TypeScript
import { IsString, IsNotEmpty, IsOptional, IsObject } from 'class-validator';
|
|
|
|
/**
|
|
* DTO for creating a new user
|
|
*/
|
|
export class CreateUserDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
name: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
avatar?: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
githubId: string;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
metadata?: Record<string, any>;
|
|
} |