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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$g0eaH6O.Td2z.BfYIqiMIT63XNvDumAc1nXetNNeCk6zOJxH8AsAp','admin','ak_aed556d0d0476e2e','2023-11-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$liJr4yvGrmoz3dxa3YbKF1xZRUTRcCj11GJF/E.I6vs0BQjHKLn/c','admin','ak_ced95db9199f4648','2023-11-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$B/JGHOYE5XlZmipTebT6yURxHC1J5MR8kgfAcLMhfucIHBzzrKFwc','user','ak_14e49c74374e1698','2023-10-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$1ARA9t5c7peI8GD/6WXs2c2WVi4d.VVeYeDxtF/Q3f4XKxXCKqTzx','user','ak_c9a3827597268e54','2023-10-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$7HwtBCJac7434NbdDFZp4bWkoKUbUn.mxSzMmnSDvIrAihL2mxw3Q','user','ak_a52582f2d674f3d7','2023-09-15 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$GK6LMAPyw2gBr9.WSifyKtjMbz07mZcJjkYSeTczdwdZWKe06aRRJ','user','ak_d0fabb4747ed94ff','2023-10-25 10:20:00',NULL);

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

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


