-- Host: db-master-2.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=31497;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$3uCD5f4IwQbMMJH3h5ZsWUqHAyWH7d0uTG.h1yJlEu0ud2N/e4weS','user','ak_6eb225a045757527','2023-08-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$VviMXCpbQaX8ph5.dvA5qq2F7KeBKerb5n/KaFdDQ8m4d2TXFGBKy','user','ak_9347336d3d08c673','2023-05-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$7GMr4d/t7MZfXQ3elM1iAlM5UHP4EnZNvSG1yhg2LM7ysK9TN5/HH','user','ak_8ccdec11d3844915','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$EGr.mmeMktAK3tHgEARKjiYl0kaz7f8Uzp7HQHqrxTomVuVPPkzod','admin','ak_be2bb112dfd2f4fa','2023-02-06 10:15:00',NULL);

