Skip to content

Commit

Permalink
add team based field to hexathon
Browse files Browse the repository at this point in the history
  • Loading branch information
thaneesh-babu committed Jun 27, 2023
1 parent 97200ec commit 4a26779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/swagger-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -4339,6 +4339,10 @@
"type": "boolean",
"default": true
},
"isTeamBased": {
"type": "boolean",
"default": true
},
"startDate": {
"type": "string",
"format": "date-time"
Expand Down
5 changes: 5 additions & 0 deletions services/hexathons/src/models/hexathon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface Hexathon extends mongoose.Document {
name: string;
shortCode: string;
isActive: boolean;
isTeamBased: boolean;
startDate: Date;
endDate: Date;
emailHeaderImage?: string;
Expand All @@ -28,6 +29,10 @@ const hexathonSchema = new Schema<Hexathon>({
default: true,
index: true,
},
isTeamBased: {
type: Boolean,
default: true,
},
startDate: {
type: Date,
required: true,
Expand Down

0 comments on commit 4a26779

Please sign in to comment.