6434-signInLog_issue #1839
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
jsegarra marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `signInLog`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `account`.`signInLog`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `account`.`signInLog` (
|
||||||
|
`id` varchar(10) NOT NULL ,
|
||||||
|
`userFk` int(10) unsigned DEFAULT NULL,
|
||||||
|
`creationDate` timestamp NULL DEFAULT current_timestamp(),
|
||||||
|
`ip` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `userFk` (`userFk`),
|
||||||
|
CONSTRAINT `signInLog_ibfk_1` FOREIGN KEY (`userFk`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
);
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
"SambaConfig": {
|
"SambaConfig": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
"SignInLog": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
"Sip": {
|
"Sip": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"name": "SignInLog",
|
||||||
|
"base": "VnModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "account.signInLog"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "string",
|
||||||
|
"forceId": false
|
||||||
jgallego
commented
esta linea jo no la pondria, no aporta nada, y si algun dia necesitamos poner fixtures podria chocar. esta linea jo no la pondria, no aporta nada, y si algun dia necesitamos poner fixtures podria chocar.
Solemos poner el autoincrement en la tabla.
jsegarra
commented
Cierto, es una propiedad que no aplica al tipo string. Cierto, es una propiedad que no aplica al tipo string.
Subida la modificación
|
|||||||
|
},
|
||||||
|
"creationDate": {
|
||||||
|
"type": "date"
|
||||||
|
},
|
||||||
|
"userFk": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"user": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "VnUser",
|
||||||
|
"foreignKey": "userFk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scope": {
|
||||||
|
"order": ["creationDate DESC", "id DESC"]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
La carpeta creat una de la rama de test 234603
Ya lo he cambiado