Error en el nombre de la tabla 'user_devices'
This commit is contained in:
parent
e6547efba1
commit
a7a464dc36
@ -781,13 +781,13 @@ INSERT INTO `users` VALUES ('9c6cc75e-8c1a-4f19-8e40-9ba1a747af01','+34691526639
|
|||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `users_devides`
|
-- Table structure for table `users_devices`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `users_devides`;
|
DROP TABLE IF EXISTS `users_devices`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
/*!50503 SET character_set_client = utf8mb4 */;
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
CREATE TABLE `users_devides` (
|
CREATE TABLE `users_devices` (
|
||||||
`id` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
`id` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||||
`userId` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
`userId` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||||
`token` varchar(255) DEFAULT NULL,
|
`token` varchar(255) DEFAULT NULL,
|
||||||
@ -798,17 +798,17 @@ CREATE TABLE `users_devides` (
|
|||||||
`updatedAt` datetime NOT NULL,
|
`updatedAt` datetime NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `userId` (`userId`),
|
KEY `userId` (`userId`),
|
||||||
CONSTRAINT `users_devides_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
|
CONSTRAINT `users_devices_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `users_devides`
|
-- Dumping data for table `users_devices`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `users_devides` WRITE;
|
LOCK TABLES `users_devices` WRITE;
|
||||||
/*!40000 ALTER TABLE `users_devides` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `users_devices` DISABLE KEYS */;
|
||||||
/*!40000 ALTER TABLE `users_devides` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `users_devices` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
@ -17,7 +17,7 @@ module.exports = function (sequelize, DataTypes) {
|
|||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
tableName: 'users_devides',
|
tableName: 'users_devices',
|
||||||
freezeTableName: true,
|
freezeTableName: true,
|
||||||
timestamps: true,
|
timestamps: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -697,13 +697,13 @@ INSERT INTO `users` VALUES ('0939bb2a-d33d-4290-ac81-fc9faa1c015e','+34655112233
|
|||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `users_devides`
|
-- Table structure for table `users_devices`
|
||||||
--
|
--
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `users_devides`;
|
DROP TABLE IF EXISTS `users_devices`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `users_devides` (
|
CREATE TABLE `users_devices` (
|
||||||
`id` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
`id` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||||
`userId` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
`userId` char(36) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||||||
`token` varchar(255) DEFAULT NULL,
|
`token` varchar(255) DEFAULT NULL,
|
||||||
@ -714,17 +714,17 @@ CREATE TABLE `users_devides` (
|
|||||||
`updatedAt` datetime NOT NULL,
|
`updatedAt` datetime NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `userId` (`userId`),
|
KEY `userId` (`userId`),
|
||||||
CONSTRAINT `users_devides_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
|
CONSTRAINT `users_devices_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `users_devides`
|
-- Dumping data for table `users_devices`
|
||||||
--
|
--
|
||||||
|
|
||||||
LOCK TABLES `users_devides` WRITE;
|
LOCK TABLES `users_devices` WRITE;
|
||||||
/*!40000 ALTER TABLE `users_devides` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `users_devices` DISABLE KEYS */;
|
||||||
/*!40000 ALTER TABLE `users_devides` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `users_devices` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user