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
.agent.md
# Environment variables
.env.local
.env
+3
View File
@@ -12,6 +12,9 @@ export class Cohort {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({ nullable: true })
scopeType: string;
@Column()
name: string;
@@ -5,6 +5,10 @@ export class CreateCohortDto {
@IsNotEmpty()
name: string;
@IsString()
@IsOptional()
scopeType?: string;
@IsString()
@IsOptional()
description?: string;