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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$B9gUWqHZZ.2Lz4FpZiobmjLTVkCV2VVZbI9hP/Qx0vvj6mEpnngq7','user','ak_e7a7fd18dc6fb68c','2023-08-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$1qOknWPZq6oPtPIeotukakrZ7ou.uMl3BrFfUE3GcXSjKNLDSIM64','admin','ak_fa1e9cbecd696ca3','2023-04-11 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$MSVX5CG2CNu5wV6wCEWri4qNhlgZE1ECKnTnl4.AM9AQrmy86DHd1','admin','ak_b3b6de3603940bb5','2023-11-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$HjcpdxVhY7n0d.IYMpOlrGs9Vy3pjwOSh/jUDFTjPdCza79Esv3gE','admin','ak_06fde2cea0e25090','2023-12-10 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$OeldYQpSVBITjSAu6usYNyltp2E84MrkE8AWI6s1hQHA.NpBdry5w','user','ak_c294e1dc1b6e610c','2023-02-02 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$aM2IS7G1uRign8dE3prKjy5mJLiMZwpsBhjvNCTGaaLPlqAWSZ8.7','user','ak_0ca81594ae885ddb','2023-05-25 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$2JRMVknA2aTcsEIDYOJnDMjYakF.Y./.lYZe7tIj9.bNvNSc/5TyV','admin','ak_b814ce178911c2b0','2023-02-13 10:13: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=50148;

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


