module.exports = (sequelize, type) => {
    const Socket = sequelize.define('sockets', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        user_id: type.INTEGER,
        connectionId: type.STRING,
        domainName: type.STRING,
        stage: type.STRING,
        test_id: type.INTEGER,
        roll_id: type.INTEGER,
        sr_no: type.INTEGER,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return Socket;
}