Skip to content

Commit

Permalink
Merge pull request #7 from lbratkovskaya/capital-timezone
Browse files Browse the repository at this point in the history
Add capital timezone to schema
  • Loading branch information
lbratkovskaya authored Mar 13, 2021
2 parents a4b2294 + 80badaa commit c2b0774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/countries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface ICountry extends Document {
pictureURL: string,
videoURL: string,
sights: ISight[],
capitalTimeZone: string,
}

export const CountrySchema: Schema = new Schema({
Expand All @@ -44,6 +45,7 @@ export const CountrySchema: Schema = new Schema({
pictureURL: { type: String, required: true },
videoURL: { type: String, required: true },
sights: { type: Array, required: true },
capitalTimeZone: {type: String, required: true},
})

export const Countries = mongoose.model<ICountry>('Countries', CountrySchema);

0 comments on commit c2b0774

Please sign in to comment.