module.exports = (sequelize, type) => {
    const KnowledgeAsses = sequelize.define('knowledge_asses', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        certi_id: type.INTEGER,
        cource_id: type.INTEGER,
        knowass_name: {
            type: type.STRING
            // unique: {
            //     args: true,
            //     msg: 'Oops. Looks like Knowledge Assess already exist.'
            // }
        },
        image: type.TEXT,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return KnowledgeAsses;
}