import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
import User from './user.js';
import UserRightType from '../type/user_right.js';

const UserRight = sequelize.define('user_right', {
    userId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    rightTypeId: {
        type: DataTypes.INTEGER,
        allowNull: false
    }}, {
    tableName: 'user_right',
    schema: 'community',
    underscored: true});

export default UserRight;
