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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$1L9osMXvkKPjbjLlfh6ajbar5KoqOPmbr977yzWAAue4S50a7Op38','user','ak_3eef597998744815','2023-10-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Qhk93GpV6PRZtTjrH3yB6moRdW1wRQPA4zw6OEEenPHzPE/enieag','admin','ak_71f627544ee672c2','2023-04-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Ol3puebWB7Eh0S.3yk8tEI2f7jcu9v/ha6KaK.8mtcJDDj.M3/92g','user','ak_2d2dea7034995f67','2023-07-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$IqM9RPS0Qu8bCAWK4ztXBoZXUGAbd1roiEAANsEwnHXae4z6h0JSy','user','ak_800e9c6001a316cb','2023-10-11 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$h3NHzTV.38Ty1RudE1c.Rbwkii2F2X6Sm1jkbrbFqsC2B4LBXFtlp','admin','ak_2119ecf9d1609690','2023-06-18 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$3LemSX.MIZWbE.cuielwczDWpKsi.i7fI86D1CvXGUamxj3r28E07','admin','ak_f845df9aa9cba604','2023-07-02 10:01:00',NULL);

