Files
amble_api/models/customerdata.js

75 lines
2.1 KiB
JavaScript
Raw Permalink Normal View History

2025-07-15 15:54:43 +05:30
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const customerDataSchema = new Schema({
DateofRegistration:Date,
vendorname:String,
vendorid:String,
vendornumber:String,
customername:String,
gender:String,
email:String,
number:String,
likedcolors:[String],
likedshadecode:[String],
likednames:[String],
selectedcolors:[String],
onebhksilver:[String],
onebhkgold:[String],
twobhkgold:[String],
exterior:[String],
SilverBedhexs :[String],
SilverBednames :[String],
SilverBedshades :[String],
SilverLivinghexs :[String],
SilverLivingnames :[String],
SilverLivingshades:[String],
SilverPoojahexs :[String],
SilverPoojanames :[String],
SilverPoojashades :[String],
GoldLivinghexs :[String],
GoldLivingnames :[String],
GoldLivingshades :[String],
GoldBedhexs :[String],
GoldBednames :[String],
GoldBedshades :[String],
GoldBed2hexs :[String],
GoldBed2names :[String],
GoldBed2shades :[String],
GoldDininghexs :[String],
GoldDiningnames :[String],
GoldDiningshades :[String],
Northhexs :[String],
Northnames :[String],
Northshades :[String],
Southhexs :[String],
Southnames :[String],
Southshades :[String],
Poolhexs :[String],
Poolnames :[String],
Poolshades :[String],
threesixty:[String],
city:String,
state:String,
time:String,
selected:Number,
sessiontime:Number,
});
const CustomerEntry = mongoose.model('customerdata', customerDataSchema);
// for(var i = 0 ; i < 10 ; i++){
// new CustomerEntry({
// customername:"HP",
// email:"harprasad@ensoimmersive.com",
// number:"9040437295",
// location:"-15.623028, 15.388667",
// gender:"Male",
// likedcolors:['#FFB0BB','#BBAABB','#FFAABB'],
// vendorname:"vickey",
// vendornumber:"8585446520",
// vendorid:"GHFGII786567557454",
// DateofRegistration:new Date(),
// }).save();
// }
module.exports = CustomerEntry;