some fixes
This commit is contained in:
23
.history/models/index_20251019202631.js
Normal file
23
.history/models/index_20251019202631.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const { sequelize } = require('../config/database');
|
||||
|
||||
// Import models
|
||||
const User = require('./User');
|
||||
const Portfolio = require('./Portfolio');
|
||||
const Service = require('./Service');
|
||||
const Contact = require('./Contact');
|
||||
const SiteSettings = require('./SiteSettings');
|
||||
|
||||
// Define associations here if needed
|
||||
// For example:
|
||||
// Service.belongsToMany(Portfolio, { through: 'ServicePortfolio' });
|
||||
// Portfolio.belongsToMany(Service, { through: 'ServicePortfolio' });
|
||||
|
||||
// Export models and sequelize instance
|
||||
module.exports = {
|
||||
sequelize,
|
||||
User,
|
||||
Portfolio,
|
||||
Service,
|
||||
Contact,
|
||||
SiteSettings
|
||||
};
|
||||
Reference in New Issue
Block a user