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

const ChatRight = sequelize.define('ChatRight', {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    tr: {
        type: DataTypes.STRING(32),
        allowNull: false,
        unique: true
    }
}, {
    schema: 'chat',
    tableName: 'rights',
    timestamps: false,
    underscored: true
});

export default ChatRight;
