module.exports = (sequelize, type) => {
    const Livetest = sequelize.define('livetest', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        test_name: {
            type: type.STRING
        },
        link: type.TEXT,
        certi_id: type.INTEGER,
        // cohort_ids: {
        //     type: type.TEXT,
        //     allowNull: true,
        //     get: function() { return this.getDataValue('cohort_ids') ? this.getDataValue('cohort_ids').split(',') : [] }
        // },
        // question_ids: {
        //     type: type.TEXT,
        //     allowNull: true,
        //     get: function() { return this.getDataValue('question_ids') ? this.getDataValue('question_ids').split(',') : [] }
        // },
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return Livetest;
}