import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';

const MessageImage = sequelize.define('message_image', {
    messageId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    fileName: {
        type: DataTypes.STRING,
        allowNull: false
    }
}, {
    tableName: 'message_image',
    schema: 'forum',
    underscored: true,
    timestamps: false
});

export default MessageImage;
