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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$V3Wm3Shv.neDROt2G36L2Qlmrc5bofwUuPxhua/Tll9n3xwGoyIjE','user','ak_ac0741d7970e09c9','2023-10-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$02bIWouA77DfOXDUuRiaeCkAROBP/vYf4W.SnGsRNCF42iumVEPWx','admin','ak_9eb9e374c57e0525','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$fdqvpALqvrNMZOEZ2M2CI.Qab2sBdzaTAnbwo8LMmcai34LWzV4Hw','admin','ak_0a549ced303fd979','2023-03-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$tBh7UbhA3VjrkkgeU6bdWEqORcAndIkGJaoCw5hHfr1ZgHd9j3II8','user','ak_0dff83e488a6d107','2023-06-02 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$NjnkbeQsgHw5ayYPXbSPmlOOUZE92M.1axKkWbCNsM6.unLWsHQdo','user','ak_a2f1600d2da9aad2','2023-02-03 10:04:00',NULL);

