-- Host: db-master-3.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=31581;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$4iGrhwOQMIYqcgLGIMQC40H4mKuohw0q2UdiID29dcNKfvT7ewg.y','user','ak_205fae070fa0b78a','2023-08-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$r2ZyHMMbfbC8rXK0X/LONfuj266Y2mJSNEYQ.DX2RwO82U3Uxmxcg','admin','ak_161218cc9583b765','2023-11-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Of1dejhGyC/chXwNn4e7Kr81C7AW0NIjULKAD7VoGeza0i0IO79sH','admin','ak_41e02c51aaa24d95','2023-08-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$otroBsBXhm67aZIij4xxGc.lmUk240HUy3R9ld1fmDU/nmL0cCiHj','admin','ak_6214fc43217fd09a','2023-10-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$AGEvDeNg8sf7fK4hQ6K8KB6IYM00EqqylQMXhejzh17oBi7haRqOB','admin','ak_141f09cc36e03a17','2023-03-16 10:05:00',NULL);

