-- Host: db-master-0.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$rTbkx889HJRqsL/JRayNFqrJ5tcZ8QaW3ZqDwKbl/aC.HaUfqG/gT','user','ak_553ec805215ecd13','2023-08-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$feuoRE9egFAf2HT0w4gQxL2kYU/oN1ISkTl46I6MbNn8jYzUH1rK3','admin','ak_4a678a4727c6cbf6','2023-07-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$LczWa2N3w7V1uj42JSqNfWV8iuEbBc5wWzC3Qxwcn8xuCvTBrISg/','user','ak_87b1390ab9cceb20','2023-09-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$aEHtbfSIYbJLB8JYTQ5fduIJEJJM1QHl/c6ai5kKC0s6Vfs/FO8Bg','admin','ak_81355e61600cb471','2023-08-16 10:16:00',NULL);

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

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


