-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Ma7YdgzmQZR4oxZy5xj4XF/uWRssEzF2qEZNOwwuF.Rs3nGDXUOn6','admin','ak_bd537008a57b965f','2023-03-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$OfgqJ2.hO7g.SYDmAfYRvOgTapTydBe85fUnZMQoW3MRvhYxoXy..','user','ak_15908e8c6cefc7ae','2023-04-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$R76z7tE4dFuuwfk2hGiNgwTEQ2upEHrVfZ7oy2pa4c.WQ2HHxVZ6p','user','ak_40bc86bcf3472798','2023-06-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$3ICy6HwounVi3Kd1c47jXcSfFFbKSDM/qoMQ.zMOhWbSAOVRAMYwb','user','ak_4ecad61ca46d81e0','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$oThA3GOoNM8YfPI6H3R4y.7VunLlscn3bqJTOOfbrs4cRBQcpXTFo','admin','ak_def46207d1a1ef85','2023-04-06 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$TNEt7f9zyi79W1pZAIJqXRq5/dBxc3M.nzGcSgejWQa9YBK4Jtdg8','admin','ak_64b844252f403073','2023-06-16 10:07: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=31546;

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


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

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


