-- Host: db-master-1.internal    Database: webapp_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=18172;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$pwn49Fx2WGYBfqJ9t4yIySMrJITTgH0ofHGpG0NQLTg2AeJqvf1UM','user','ak_7c31dd2dcda32057','2023-10-05 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$LE4mUKvRuvjOI.VERHGGFz9yua9SxniaWJCqcEJzx2FspCdVbOmMj','admin','ak_7ad824efe23b5172','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$V3ZAIpY5IRh.CZ5cDeaFIEt7jPVCjd2V/zSGsOgD5iWT2sap.lHym','user','ak_ae44f55a94201e3f','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$e0eG9mA7WYfdvLmIRQ.R6X6weExWRVuXhLx4v/kB3i9HiUeaVMnJj','user','ak_a896eb63b7f4a198','2023-08-05 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$K67Z700P15T6M0DJ/qfh4ie67k5bj3BjxdGdNOPHjcLy6Abil9UVc','user','ak_df5edd0268401217','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$NAE4IsXvmLWcai66HEjnOhwr.4Vt7bFCTrCoBCBZgI28HM0tIZ.Db','user','ak_07460594efc0e1b8','2023-01-07 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$mQ4ques9aFpNj7/xUb20cHWAlVs27Q7PAZeq9J2COMhFCBjQl90fy','admin','ak_3783a19595f72a42','2023-10-27 10:11: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=11862;

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


