{"size": 656, "ext": "js", "max_stars_repo_path": "proyecto_reto_final/models/nivel.js", "max_stars_repo_name": "Edurdgzl/Proyecto_final", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "proyecto_reto_final/models/nivel.js", "max_issues_repo_name": "Edurdgzl/Proyecto_final", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "proyecto_reto_final/models/nivel.js", "max_forks_repo_name": "Edurdgzl/Proyecto_final", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6206896552, "max_line_length": 39, "alphanum_fraction": 0.5015243902}
const Sequelize = require('sequelize');

const Nivel = (sequelize)=>{
    sequelize.define('nivel',{
        id_nivel:{
            type:Sequelize.INTEGER,
            allowNull:false,
            primaryKey: true
        },
        nombre_niv:{
            type: Sequelize.STRING,
            allowNull:false
        },
        num_enemigos:{
            type: Sequelize.INTEGER,
            allowNull:false
        },
        monedas_niv:{
            type: Sequelize.INTEGER,
            allowNull:false
        },
        coleccionables_niv:{
            type: Sequelize.INTEGER,
            allowNull:false
        }
    })
};

module.exports = Nivel;