Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
!refactor: add region to location schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Nov 22, 2023
1 parent 54a1b93 commit 7651da5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/models/locationSchema.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Schema } from 'mongoose'

const LocationSchema = new Schema({
street: {type: String, required: [true, 'Street is required']},
barangay: {type: String, required: [true, 'Barangay is required']},
city: {type: String, required: [true, 'City is required']},
province: {type: String, required: [true, 'Province is required']}
street: { type: String, required: [true, 'Street is required'] },
barangay: { type: String, required: [true, 'Barangay is required'] },
city: { type: String, required: [true, 'City is required'] },
province: { type: String, required: [true, 'Province is required'] },
region: { type: String, required: [true, 'Region is required'] }
})

export default LocationSchema
export default LocationSchema

0 comments on commit 7651da5

Please sign in to comment.