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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$ywokoFUBT3hruD8d9/wIpm108f.CtF72CIgd3vDl3x2UQTVpQhSVU','user','ak_d99f0c5c40c49a76','2023-10-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$tz4bRZhG5qjyfQbY3gnszfmwvcjz/jGe0GZjeeHO1CgpZd.Ru8NLm','user','ak_7f0f6a9cecbe1974','2023-12-15 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$YsEDBo0yOMBMJzmAg2Cs4jvs3Ge6CzLeWSz3uY99YA2vW3OvQlD9H','admin','ak_b8ad1a308a097c69','2023-05-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$HuLMhJkUkNbFfVRap0wJiSDSPDm9OqQ679jBPOPMlNJVr4paYq3yr','user','ak_245619b0ee183c4b','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$o1YMET/oeY71cu.r4dTwbRDdpPNwm5.VHHGOBrJY45xpsXQuXiBBc','user','ak_02ace4ac8c1d4662','2023-08-13 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$/egMUsTh9/Cy7EdxeHr0EhKJKzOC6JJUeqME6xFVuORoQjSetNnjA','admin','ak_f8cbafc69dc9212f','2023-11-06 10:05: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=11240;

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

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


