'use strict';
module.exports = function(sequelize, DataTypes) {
	//Define el modelo User
	var User = sequelize.define('User', {
		cum: DataTypes.STRING,
		seccion: DataTypes.STRING,
		grupo: DataTypes.INTEGER,
		provincia: DataTypes.STRING,
		facebookid: DataTypes.STRING,
		facebooktoken: DataTypes.STRING,
		facebookname: DataTypes.STRING,
		facebookemail: DataTypes.STRING,
	}, {
		//set the timestamps to be underscored: (created_at, updated_at)
		underscored: true,
		classMethods: {
			associate: function(models) {
				User.hasMany(models.Patrulla,{
					onDelete: 'cascade'
				});
			}
		}
	});
	return User;
};
@@ -550,16 +550,130 @@
 rulla,%7B%0A
+%09%09%09%09%09onDelete: 'cascade',%0A%09%09%09%09%09foreignKey: 'autor', %0A%09%09%09%09%09sourceKey: 'id'%0A%09%09%09%09%7D);%0A%09%09%09%09User.hasMany(models.Ficha,%7B%0A
 %09%09%09%09%09onD
@@ -727,8 +727,9 @@
 User;%0A%7D;
+%0A

Update user.js