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
|
# Local agent customization
|
||||||
.agent.md
|
.agent.md
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
.env.local
|
||||||
|
.env
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user