-- Host: db-master-6.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=30658;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$8fnY4Vsah5XjgU5jhEY6TaEBD9Z2LGW/Ch/uQOESwRrUyWKMGyWhR','user','ak_ce1adb6adb343afe','2023-05-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$VFghM4hf4WT84ovZf.XsiY83P14U5zPoDuEyyQpRMlygH911hxohj','admin','ak_7c1cb28be5bf3173','2023-05-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$aWY6U/aeMUJ4jrz94gD4yhIc27VI2ia/wycMVRTGnscnoAC0pxXlH','user','ak_b8fb15420e1c21d8','2023-09-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$ZSGBc0SfUb.QXyWPz8QDsr7p9qVhEqNM6x5YEWzDgkA7qt7CMCCqU','user','ak_6f4add3a89231394','2023-03-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$IDiIMkD9WDFV65vU3C9WD5o8ykgN1dkC.TO8e8A86JYfZw557lLlh','user','ak_91d9eb5c0ddeff17','2023-11-22 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$BXLiJA4NH0Wkml4MkKUdga05RYaSGa6hpnbv11Ac6YI/W8/X9abBd','admin','ak_968ae274a95c3727','2023-01-28 10:10: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=28133;

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

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


