{"size": 692, "ext": "js", "max_stars_repo_path": "services/models/Purchase/BasePurchaseModel.js", "max_stars_repo_name": "blenson/blockmarket", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "services/models/Purchase/BasePurchaseModel.js", "max_issues_repo_name": "blenson/blockmarket", "max_issues_repo_issues_event_min_datetime": "2021-03-09T23:46:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T15:20:45.000Z", "max_forks_repo_path": "services/models/Purchase/BasePurchaseModel.js", "max_forks_repo_name": "blenson/blockmarket", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 24.7142857143, "max_line_length": 92, "alphanum_fraction": 0.6054913295}
const mongoose = require('mongoose');

const BasePurchaseSchema = new mongoose.Schema({
    "storeId" : String,
    "storeName" : String,
    "buyerId" : String,
    "buyerName" : String,
    "merchantId" : String,
    "merchantName" : String,
    "itemId" : String,
    "itemName" : String,
    "orderDate" : Date,
    "currency" : String,
    "shipTo": {
        "postOfficeBox": String,
        "street1": String,
        "street2": String,
        "locality": String,
        "region": String,
        "country": String,
        "postCode": String
    }
});
const BasePurchaseModel = mongoose.model( "BasePurchase", BasePurchaseSchema, "purchases" );

module.exports = BasePurchaseModel

