{"action":"opened","issue":{"url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/9","repository_url":"https://api.github.com/repos/sdec-brasil/dashboard","labels_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/9/comments","events_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/9/events","html_url":"https://github.com/sdec-brasil/dashboard/issues/9","id":429805192,"node_id":"MDU6SXNzdWU0Mjk4MDUxOTI=","number":9,"title":"Table: txin","user":{"login":"tloriato","id":11580564,"node_id":"MDQ6VXNlcjExNTgwNTY0","avatar_url":"https://avatars1.githubusercontent.com/u/11580564?v=4","gravatar_id":"","url":"https://api.github.com/users/tloriato","html_url":"https://github.com/tloriato","followers_url":"https://api.github.com/users/tloriato/followers","following_url":"https://api.github.com/users/tloriato/following{/other_user}","gists_url":"https://api.github.com/users/tloriato/gists{/gist_id}","starred_url":"https://api.github.com/users/tloriato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tloriato/subscriptions","organizations_url":"https://api.github.com/users/tloriato/orgs","repos_url":"https://api.github.com/users/tloriato/repos","events_url":"https://api.github.com/users/tloriato/events{/privacy}","received_events_url":"https://api.github.com/users/tloriato/received_events","type":"User","site_admin":false},"labels":[{"id":1305771933,"node_id":"MDU6TGFiZWwxMzA1NzcxOTMz","url":"https://api.github.com/repos/sdec-brasil/dashboard/labels/abe","name":"abe","color":"ea75dc","default":false},{"id":1305771650,"node_id":"MDU6TGFiZWwxMzA1NzcxNjUw","url":"https://api.github.com/repos/sdec-brasil/dashboard/labels/database","name":"database","color":"a6f7a0","default":false},{"id":1256603583,"node_id":"MDU6TGFiZWwxMjU2NjAzNTgz","url":"https://api.github.com/repos/sdec-brasil/dashboard/labels/sequelize","name":"sequelize","color":"73c948","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-05T15:11:28Z","updated_at":"2019-04-05T15:11:28Z","closed_at":null,"author_association":"MEMBER","body":"Reference: #6 \r\n\r\nOriginal Abe:\r\n```\r\nDROP TABLE IF EXISTS `txin`;\r\n\r\nCREATE TABLE `txin` (\r\n  `txin_id` decimal(26,0) NOT NULL,\r\n  `tx_id` decimal(26,0) NOT NULL,\r\n  `txin_pos` decimal(10,0) NOT NULL,\r\n  `txout_id` decimal(26,0) DEFAULT NULL,\r\n  `txin_scriptSig` mediumblob,\r\n  `txin_sequence` decimal(10,0) DEFAULT NULL,\r\n  PRIMARY KEY (`txin_id`),\r\n  UNIQUE KEY `tx_id` (`tx_id`,`txin_pos`),\r\n  KEY `x_txin_txout` (`txout_id`),\r\n  CONSTRAINT `txin_ibfk_1` FOREIGN KEY (`tx_id`) REFERENCES `tx` (`tx_id`)\r\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;\r\n```\r\n\r\nSequelize:\r\n```\r\nDROP TABLE IF EXISTS `txin`;\r\n\r\nCREATE TABLE `txin` (\r\n  `txin_id` double NOT NULL,\r\n  `tx_id` double NOT NULL,\r\n  `txin_pos` double NOT NULL,\r\n  `txout_id` double DEFAULT NULL,\r\n  `txin_script_sig` blob,\r\n  `txin_sequence` double DEFAULT NULL,\r\n  `created_at` datetime NOT NULL,\r\n  `updated_at` datetime NOT NULL,\r\n  PRIMARY KEY (`txin_id`),\r\n  UNIQUE KEY `txin_tx_id_txin_pos` (`tx_id`,`txin_pos`),\r\n  CONSTRAINT `txin_ibfk_1` FOREIGN KEY (`tx_id`) REFERENCES `tx` (`tx_id`)\r\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;\r\n```"}}
{"actor":{"display_login":"tloriato"}}