-- Host: db-master-8.internal    Database: customers


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=49299;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$JTQ9S7XLkh0m./xVlVInGDYPKAXMHPB0S1DfvTpC6AuhoCDHm02mg','admin','ak_52938cf19a5949e1','2023-02-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$X/A9fCb0ZRyyLX.u6kfVclOgpfFaT8SYy/IyV.4cBGRUEJAorvDj/','admin','ak_1122cf996428a2b2','2023-05-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$ZCimMjdw5J.D6.Lv0c/HpyCk5Cid/KLM06TVfvPtHB8w/xUdnQOP0','user','ak_f1cf1c4475b07bbf','2023-11-07 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$flcgYVo2DuNROUE7knwJi/1DGMYwpcURqnVyiQURvDMsOH/Z.v098','user','ak_057ed5c7adcba608','2023-10-07 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$CYe7Mboo6VlhkhfXfB5pUE.ZGyUUaLicBysUgUwWRPyK8gZZuSd7k','user','ak_eccde424f9fec560','2023-06-02 10:08:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=6108;

--
-- Dumping data for table `audit_log`
--


