text: const { Sequelize } = require("sequelize");
  
  const databaseConfig = require("../config/database");
  const User = require("../models/User");
  const Category = require("../models/Category");
  const Video = require("../models/Video");
  
  
  const connection = new Sequelize(databaseConfig);
  
  const models = [User, Category, Video];
  
  models.forEach((model) => model.init(connection));
  models.forEach(
    (model) => model.associate && model.associate(connection.models)
  );
  