UNPKG

nammaniru_common_service

Version:

The service will contain all the functionality which is common for both shop and customer

63 lines (61 loc) 1.24 kB
import mongoose, { Schema } from "mongoose"; const OrderDeliveryAddressSchema = new Schema( { AddressID: { type: Number, required: true }, AddressType: { type: String, required: false }, BuildingNumber: { type: String, required: true }, BuildingName: { type: String, required: true, }, StreetAddress: { type: String, required: true }, Landmark: { type: String, required: false }, Location: { type: String, required: true }, City: { type: String, required: true }, State: { type: String, required: true }, Pincode: { type: String, required: true }, Default: { type: Boolean, required: true } } ); export default OrderDeliveryAddressSchema;