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

const ImageVisibilityUser = sequelize.define('image_visibility_user', {
    id: {
        type: DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true,
        allowNull: false
    },
    imageId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    userId: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    tableName: 'image_visibility_user',
    timestamps: false,
    underscored: true,
    schema: 'community'
});

export default ImageVisibilityUser;
