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

const ForumPermission = sequelize.define('forum_permission', {
    name: {
        type: DataTypes.STRING,
        allowNull: false},
    value: {
        type: DataTypes.STRING, 
        allowNull: true}}, {
    sequelize,
    modelName: 'ForumPermission',
    tableName: 'forum_permission',
    schema: 'forum',
    timestamps: false,
    underscored: true
});

export default ForumPermission;
