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

const FolderVisibilityUser = sequelize.define('folder_visibility_user', {
    id: {
        type: DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true,
        allowNull: false
    },
    folderId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    visibilityUserId: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    tableName: 'folder_visibility_user',
    schema: 'community',
    timestamps: false,
    underscored: true});

export default FolderVisibilityUser;
