-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$LhomBtWM8dEaCQfSr4MEx3kQmddYKG.8d2ABiMAFYCFDcTWx3pUMe','user','ak_d4d4c93a064250c1','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$pnpXvj7UwSSFsym4h/qFcZeOQ6ivZ2k.XCBbRQe3qOIyv1NHRoG2f','user','ak_3bfb1fe8917534b8','2023-04-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$dUTSzhP742y3M7U/0L7o4.mJ4VW3xoXl58m06Xm8Bml0Rgm9mUEMz','admin','ak_808ab1dd9a65a604','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$xP8e.RvOzDxzZGm6qb9t1AaDqWpW4aF00Tsnc9REjYD0FF2GpgnAB','user','ak_e40620fa14c5313e','2023-05-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$x0Y6eHK/qeeLnS1JTL.R1mNfF1h.HKTtJ6QJ8Cx2REejnT1lmqxPc','user','ak_97c684f0c0d1ea78','2023-09-18 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$35iENdRvwuB57X7HGsf/Tyvy8hUA/C1H/yIC0T18AKFMZFiO8UgDo','admin','ak_0676126970081053','2023-03-18 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$qUfT13faJgJg5zIx5mypClnQpU.Q2Zh/aRZ6XHreGVNU3mfWwywaC','user','ak_cbaa08aaa84e4351','2023-06-17 10:22: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=39040;

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

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


