{"size": 350, "ext": "js", "max_stars_repo_path": "app/models/Factura.js", "max_stars_repo_name": "leomelgar/MarketPlace", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/models/Factura.js", "max_issues_repo_name": "leomelgar/MarketPlace", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/models/Factura.js", "max_forks_repo_name": "leomelgar/MarketPlace", "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": 16.6666666667, "max_line_length": 51, "alphanum_fraction": 0.6}

/**
	* Factura Model
	*/

module.exports = function(sequelize, DataTypes) {

	var Factura = sequelize.define('Factura', 
		{
			type: DataTypes.STRING //tipo de factura A, B, C
		},
		{
            associate: function(models) {
				Factura.belongsTo(models.Client);
                Factura.belongsTo(models.Detail);
			}
		}
	);

	return Factura;
};