text: const User = require('./User');
  const Post = require('./Post');
  const Comment = require('./Comment');
  
  User.hasMany(Post, {
    foreignKey: 'user_id',
    onDelete: 'CASCADE'
  });
  
  Post.belongsTo(User, {
    foreignKey: 'user_id'
  });
  
  // Comment to User associations - users have many comments and a comment belongs to a user
  User.hasMany(Comment, {
    foreignKey: 'user_id'
  });
  
  Comment.belongsTo(User, {
      foreignKey: 'user_id'
  });
  
  // Comment to Post associations - blog postss have many comments - a comment belongs to a blog posts
  Post.hasMany(Comment, {
      foreignKey: 'post_id'
  });
  
  Comment.belongsTo(Post, {
      foreignKey: 'post_id'
  });
  
  module.exports = { User, Post, Comment };