feat: implement Cohort entity and DTO with environment variable exclusion in gitignore
This commit is contained in:
@@ -37,3 +37,7 @@ lerna-debug.log*
|
||||
|
||||
# Local agent customization
|
||||
.agent.md
|
||||
|
||||
# Environment variables
|
||||
.env.local
|
||||
.env
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user