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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$LIjLOQPH1ZNP0C0cfTZzsd6BOWzFfr3GIQIOsl.B9eV74oKNkRp3c','user','ak_2b9fa4f68735e2d5','2023-06-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$6jyYgl6W6Kji/w0NDAQqGQ1EHgHJ8BWNi3PblwY1Q9DVAcTrvPO.O','user','ak_41b830cc90dd06f1','2023-12-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$K8D2E0TZDGojWv6UCE94/LjOAYIWt/YIGmpjRMutIB80nTrJ5cIZ6','admin','ak_88068ef81e0e9522','2023-10-07 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$JM9PLQxcdZGH6qWSqIRgpCqiRziNph7zPFeJFKa4CUk3xUH15zmKw','user','ak_49346e6664b6af12','2023-11-17 10:04:00',NULL);

