feat: implement Cohort entity and DTO with environment variable exclusion in gitignore

This commit is contained in:
azeeee05
2026-07-10 10:54:02 +05:30
parent 3137cb8038
commit 49b5fcb487
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -37,3 +37,7 @@ lerna-debug.log*
# Local agent customization # Local agent customization
.agent.md .agent.md
# Environment variables
.env.local
.env
+3
View File
@@ -12,6 +12,9 @@ export class Cohort {
@PrimaryGeneratedColumn('uuid') @PrimaryGeneratedColumn('uuid')
id: string; id: string;
@Column({ nullable: true })
scopeType: string;
@Column() @Column()
name: string; name: string;
@@ -5,6 +5,10 @@ export class CreateCohortDto {
@IsNotEmpty() @IsNotEmpty()
name: string; name: string;
@IsString()
@IsOptional()
scopeType?: string;
@IsString() @IsString()
@IsOptional() @IsOptional()
description?: string; description?: string;