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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$WFnIaPnVEv5kK.q7L8HiefgKwCISCjEUZ1bVBWjYF1cKS3R8JARvQ','user','ak_1921e4faa50d0fbb','2023-05-22 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$sTaK0XEQNs2hAQcoJY4/zC0cjhCiufZHjw0qsFTyimpWTZXAQe33z','user','ak_188395e767f25e16','2023-07-18 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$HYymgxyb3Lbe7SvGpZTdmpCMuRweadCRn0SGSZkLf9Qm3k7VcAjXL','user','ak_bb586e6a367c498f','2023-03-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$NgIUm2wGKDK5lKPKtnbyZq2zJHcEF6BBWEyBzbIW49Jfvpjfi1gXP','user','ak_76967df490710396','2023-11-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$AAT6pCn.hlZQ2PzF.ZNzcvv9EWNMd9Tqz2GPIfR./0hzM2nR3mrqu','user','ak_9236f91e24069fbf','2023-07-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$Rl49h3tOpu3EZ5p4cgmNeVvswDzyrG/rL1IDNPYqQk3w0/73W1E1K','user','ak_94fbaed5a78e2416','2023-03-09 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$Waiu87e4H7Nu4n8bTB3ehKG.S7SVn/9rUvPfG4HuOo6/3rpUm9pzk','admin','ak_6e5bd0881d52d0b1','2023-06-07 10:10: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=9170;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=31840;

--
-- Dumping data for table `sessions`
--


