Spaces:
Sleeping
Sleeping
| import { IsNotEmpty, IsString, IsOptional, IsInt, IsBoolean, Min, Max } from 'class-validator'; | |
| import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | |
| import { Type } from 'class-transformer'; | |
| export class CreateStudyGroupDto { | |
| ({ description: 'Course ID to associate the study group with', example: 1 }) | |
| () | |
| (() => Number) | |
| () | |
| courseId: number; | |
| ({ description: 'Name of the study group', example: 'Data Structures Study Group' }) | |
| () | |
| () | |
| groupName: string; | |
| ({ description: 'Description of the study group', example: 'Weekly study sessions for DS course' }) | |
| () | |
| () | |
| description?: string; | |
| ({ description: 'Maximum number of members allowed', example: 10, default: 10 }) | |
| () | |
| (() => Number) | |
| () | |
| (2) | |
| (50) | |
| maxMembers?: number; | |
| ({ description: 'Whether the group is public (anyone can join)', example: true, default: true }) | |
| () | |
| () | |
| isPublic?: boolean; | |
| ({ description: 'Meeting schedule text', example: 'Every Monday 5-7 PM' }) | |
| () | |
| () | |
| meetingSchedule?: string; | |
| } | |