-- Host: db-master-6.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=7104;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$glEMizrsnARktyeESFt1tczNBI27/L/qpmfMLAOXqeRDd/0H64R1Q','user','ak_b2d1c80aceed07e3','2023-12-01 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Gf0qkcE.BqlknDC9k.6bd5ROlei3/V0yv7WlOOa7zf3.DjNNdbdwM','user','ak_798c7fc48669ad8e','2023-12-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$5gtib2xqi.npYLN4.kw3Q0Mx6wy5LeyTUvFD1AQ/msYtoOEbYLu4l','admin','ak_a5fb275d5a75103a','2023-10-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$NX1Wet5WIjPhaZRoEXHm4VX48.kC1h264cpuRIldCJCPBiyX2leQN','admin','ak_0f0d78c5f9f422b9','2023-04-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$fdxyMcJYEBIYL0tVhf9dxT/zHphMD3FjuEiTVQ.KJIIf8XQmOZi2g','admin','ak_4a235609cee4bb7e','2023-03-24 10:09:00',NULL);

