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

34
models/Contact.js Normal file
View File

@@ -0,0 +1,34 @@
const mongoose = require('mongoose');
const contactSchema = new mongoose.Schema({
customer: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Customer',
required: true
},
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
required: true
},
type: {
type: String,
enum: ['phone', 'email', 'in-person', 'other'],
required: true
},
notes: {
type: String,
required: true
},
followUp: {
required: Boolean,
date: Date,
notes: String
},
createdAt: {
type: Date,
default: Date.now
}
});
module.exports = mongoose.model('Contact', contactSchema);