@@ -4,7 +4,7 @@ import { CohortInterface } from './cohort.model';
44import { PhaseInterface } from './phase.model' ;
55
66export interface TeamInterface {
7- _id : mongoose . Types . ObjectId ;
7+ id ?: string ;
88 name : string ;
99 cohort ?: CohortInterface ;
1010 phase ?: PhaseInterface ;
@@ -23,15 +23,15 @@ const teamSchema = new Schema(
2323 required : true ,
2424 } ,
2525 cohort : {
26- type : mongoose . Types . ObjectId ,
26+ type : Schema . Types . ObjectId ,
2727 ref : 'Cohort' ,
2828 } ,
2929 ttl : {
30- type : mongoose . Types . ObjectId ,
30+ type : Schema . Types . ObjectId ,
3131 ref : 'User' ,
3232 } ,
3333 members : {
34- type : [ mongoose . Types . ObjectId ] ,
34+ type : [ Schema . Types . ObjectId ] ,
3535 ref : 'User' ,
3636 } ,
3737 startingPhase : {
@@ -44,20 +44,20 @@ const teamSchema = new Schema(
4444 default : true ,
4545 } ,
4646 organization : {
47- type : mongoose . Types . ObjectId ,
47+ type : Schema . Types . ObjectId ,
4848 ref : 'Organization' ,
4949 required : true ,
5050 } ,
5151 manager : {
52- type : mongoose . Types . ObjectId ,
52+ type : Schema . Types . ObjectId ,
5353 ref : 'User' ,
5454 } ,
5555 phase : {
56- type : mongoose . Types . ObjectId ,
56+ type : Schema . Types . ObjectId ,
5757 ref : 'Phase' ,
5858 } ,
5959 program : {
60- type : mongoose . Types . ObjectId ,
60+ type : Schema . Types . ObjectId ,
6161 ref : 'Program' ,
6262 } ,
6363 isJobActive : {
0 commit comments