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


--
-- 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=7580;

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


--
-- 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=1006;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$lTpS9fKYg42WDayjQmN5Zs7P/sKQ4f/p3kePlcEijzqPnV7nSUJqN','user','ak_ad258ecccce4c69a','2023-07-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$sQ/SsC3VY0lJwI/X4z1GFJtDflk5K.w64xnN9Ajjl2.neIZsVZZEy','user','ak_de72097bf7881358','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$.QA/z1g.ofUDs27Rri7m3wDzeYIgBc5dEAcXf8O.7hst18q2E2Yup','user','ak_e43cb3521962c77e','2023-08-01 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mE7qLCwnIBVj0G3fvAvj96eX6hv84CmCK0m0nXHoVO6SzD.axUyyu','user','ak_6db8499299ff47d3','2023-03-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$ljllulhQ226g1KkdzugmXal5xqqA0ROGSGbLZfIbxqkbGlcnhEsAu','admin','ak_0019cbeb5f90a93f','2023-07-18 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$gsm.0gTVLU4aea59ckr6/XMO1mXZD2taF6IJ0rgwV7FgqpOEYRn2E','user','ak_d90c5c06999ec457','2023-03-16 10:08:00',NULL);

