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

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

export default ImageImageVisibility;
