DBTables/table_api_keys.sql
CREATE TABLE `api_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`api_key` varchar(600) NOT NULL,
`secret` varchar(200) DEFAULT NULL,
`created_on` datetime DEFAULT CURRENT_TIMESTAMP,
`status` tinyint(2) NOT NULL DEFAULT '1',
`created_by` int(11) DEFAULT NULL,
`updated_on` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_by` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `api_key` (`api_key`)
) ENGINE=InnoDB AUTO_INCREMENT=1;