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

const Folder = sequelize.define('folder', {
    name: {
        type: DataTypes.STRING,
        allowNull: false},
    parentId: {
        type: DataTypes.INTEGER,
        allowNull: true
    },
    userId: {
        type: DataTypes.INTEGER,
        allowNull: false
    }}, {
    tableName: 'folder',
    schema: 'community',
    underscored: true,
    timestamps: true});

export default Folder;
