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

const UserParamVisibility = sequelize.define('user_param_visibility', {
    id: {
        type: DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true,
        allowNull: false
    },
    paramId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    visibility: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    tableName: 'user_param_visibility',
    timestamps: false,
    underscored: true,
    schema: 'community'
});

export default UserParamVisibility;
