-- Host: db-master-4.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=17217;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$cx3HnexpCoHTnAL4swwPUXhtkGiSLCZcJpSncGiZXSPO5mdajoWjD','admin','ak_8f28d390349077bc','2023-03-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$/7eAg9xUVjVgATwcOcmfGhGayDx449Ps6GPhwlsyZM1ImSpSHbmNA','user','ak_5d8d58381dceb13b','2023-06-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$zqGhBwYv6aN8k97HSn9mtWCOpLkOkY4TMJcxN46v3fs4O.a2DAMRL','admin','ak_6de43a37581a2cb6','2023-08-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$HpDQbKy8N3O0DJpDRqVzPS/681dtgFwTzQBYD1RVEHwqdgV7sz8MH','admin','ak_36037c6e51968180','2023-05-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$Sp5ujqUtTa/Ni.qmJrzbc9J8rGVMdO5cY99z2NK/EUnM9otBlx6a/','admin','ak_b665a332650674c3','2023-12-11 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ITKHywQ/xiI9QoZEXpH7wgejIqXWZsi1YHVrPFgRn6srisf48Yt1U','user','ak_256de133bc452d8d','2023-05-26 10:03:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=29469;

--
-- Dumping data for table `orders`
--


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

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


