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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$nEAfwUrCj0bosOLibywkvbD.2uohVDBOfvE6Nlttw9nlOgch/Fkwv','user','ak_a9e9c4784dd7f16b','2023-02-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Hca6ZhvcPRjQ3L/svL.zIBhHJ/Z0ORUAvb1obhg5ZNv9LruJwZQ6v','user','ak_aa72695c0aba3134','2023-09-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$ZnaPEpJxPI7Yluc7lmT6Cii69aB92DG21/3yPEsEfbUTtGkobDyiS','admin','ak_be61cf0b878abcd4','2023-06-17 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$smYVSbVLGR651Bg6bNaloz49q9vLZAnnXFEEr2s1wh2SiVDiTTzrM','user','ak_7625a83e59f855a3','2023-11-24 10:08:00',NULL);

