-- Host: db-master-8.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=22653;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$IPqom4loHfrExayPLZ4lQI./DwHOHIjPaZlRxC8rjR.xFIm/1Y.Xg','user','ak_6fc5b305daed460b','2023-06-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$0eUv6pMVHkeCHaBuA9MncyrlS8wJ4C3YgzrbJeYekrXjZrvHtGH.V','user','ak_49ea3abdb0aad800','2023-03-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$tIZJrrBVG9pLmOy.95olrW.p2HLS97ZT/SsH9mUD0hQ1v8UGvwQpG','admin','ak_21db7c08e822592c','2023-07-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$RzL3N0jWOuW1W4m160I5BXjM/HYFF7ibe0cPrqc6idPqFrOdjrHGK','user','ak_6e55924afe6e3849','2023-03-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$rLtmjY48lklSdLwROwS4w42sUaCauWFR2IrYGSMP5lrhW5GifBd/5','admin','ak_8362ebd0888adb00','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$bcn3CMhSzfBt9dp3M1gE6bhh1hphCr/eYD/fYwGgCBnv5HCppIs2c','user','ak_6e5af5db5f4fd4b8','2023-02-25 10:00:00',NULL);

