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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$JhMI623Sb0DPkXn96BTX40StZrWk3nF3fngG04rYpVAfPOCVxNTkg','user','ak_147656217764d413','2023-06-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$9xOG63s39YSMjINdRZK9d/GHP0uolDfF1KHerytOrELg4GUvoFKDm','user','ak_070a8759a804752d','2023-09-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$PiIp9767v690ENi8DS9POq8eb2VCbpNC.D70LMzpDICb.8xf4X.Os','admin','ak_066eb9458ab24874','2023-11-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$i6S78KWtYeHm6b569HjpF8IMDHNJgiRDyzxc3PnU3Q8ktaSMj9Bpi','admin','ak_5aa49ab562ac3871','2023-11-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$WMWxHgmnWFW4gcWu2zJj.kmaYAe5U9YBZk.UyWranRPqmB6tQZbZL','user','ak_558e98027d4f2d9c','2023-05-27 10:22:00',NULL);

