Remove index.html, styles.css, favicon.svg, script.js, and tailwind.config.js files to streamline the project and eliminate unused resources.

This commit is contained in:
Alvin
2025-06-10 09:16:11 +02:00
parent c07fdac03c
commit ef07016a14
12 changed files with 244 additions and 1579 deletions

32
models/Customer.js Normal file
View File

@@ -0,0 +1,32 @@
const mongoose = require('mongoose');
const customerSchema = new mongoose.Schema({
name: {
type: String,
required: true
},
email: {
type: String,
required: true,
unique: true
},
phone: {
type: String
},
carDetails: {
make: String,
model: String,
year: Number,
modifications: [String]
},
createdAt: {
type: Date,
default: Date.now
},
updatedAt: {
type: Date,
default: Date.now
}
});
module.exports = mongoose.model('Customer', customerSchema);