module.exports = (sequelize, type) => {
    const TakeSurvey = sequelize.define('take_surveys', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        user_id: type.INTEGER,
        cohort_id: type.INTEGER,
        pass_exam: type.INTEGER,
        about_class: type.TEXT,
        per_domain: type.TEXT,
        prepare_exam: type.TEXT,
        effective_part: type.TEXT,
        suggestions: type.TEXT,
        additional_feedback: type.TEXT,
        feedback_john: type.TEXT,
        feedback_rob: type.TEXT,
        class_interest: type.TEXT,
        friend_colleague: type.INTEGER,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return TakeSurvey;
}