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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$bEzly/vDKoSfgYon.40OirPRz3bOaPPW3g3gv8YfA6qyE/0udlPvS','user','ak_5a4c07a452cb5889','2023-03-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$CC/2yM4/yGGmVaO5B2WNgH9qy9VPwys96W.i0214.NN3wSPKrs0fm','admin','ak_84e114c89dd91d5b','2023-02-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$q3h4657dbw9.UwwzSQQudjdX9rgh4BSZjVl2Q2JiRFDl1tvbeSgGn','user','ak_a31e2382b385e7a2','2023-06-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$H13MEo6f8kO9/mT/ayY8qc7MUKBJUcJ/R.dVWJaqcCZkYqCZh/aJb','admin','ak_e8bd1812827de69c','2023-01-09 10:04:00',NULL);

