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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$UpO3e7WCze1ETTtO93WLNQ3NbvGB/GuvGTPBIVp81UhLMdAWfsW5J','user','ak_6540db3e4c07b183','2023-09-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$M05uxrjI6JiiwLpqlKdILkxgUI07fDlaws54Z2Y3wJJ/eomBobR1z','user','ak_c635c4928778dfdb','2023-07-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Rhiss9LFCyd7NaS0lvMUkyifQma9w2JkYnXhnK09Lks6uXXzxKpB/','user','ak_491c2d6d839e7df4','2023-07-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Qa00o/oqaKMjgJko66i.XWVGrjTfCp70qqCuI/r8lbcrmXWgZS7ww','user','ak_1fc0db71c6b6929c','2023-09-01 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$nr455ejbX81c6Fm2phbGS7u0iZzoNW.WjG3Y7PzVJVP305HG80FyX','user','ak_8f5cf2120acb558c','2023-05-17 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$YP/ByoRMvhWUOzlMS5wMaBQCW/J1srnjLrNW4AHzB6v.9VGLtKzhr','user','ak_52f10de3e9537f60','2023-03-13 10:17:00',NULL);

