address.js 412 B

1234567891011121314151617
  1. const mongoose = require('mongoose')
  2. const Schema = mongoose.Schema
  3. const AddressSchema = new Schema({
  4. user: { type: Schema.Types.ObjectId, ref: 'User'},
  5. country: String,
  6. fullName: String,
  7. streetAddress: String,
  8. city: String,
  9. state: String,
  10. zipCode: String,
  11. phoneNumber: String,
  12. deliverInstructions: String,
  13. securityCode: String
  14. })
  15. module.exports = mongoose.model('Address', AddressSchema)