text: const { DataTypes } = require('sequelize');
  
  module.exports = model;
  
  function model(sequelize) {
    const attributes = {
      accountId: { type: DataTypes.INTEGER, allowNull: false },
      roomId: { type: DataTypes.INTEGER, allowNull: false },
      created: {
        type: DataTypes.DATE,
        allowNull: false,
        defaultValue: DataTypes.NOW
      }
    };
  
    const options = {
      // disable default timestamp fields (createdAt and updatedAt)
      timestamps: false
    };
  
    return sequelize.define('roomParticipant', attributes, options);
  }
  