-- Host: db-master-4.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=50227;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mcKgcytKfKIuQdBp5o5cWPdQdf5LwMeqK4Mt22QRLB5/C2Z7iNyEc','user','ak_1cdf1738c651457d','2023-01-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$psp1AkZgFxWcZM201vWF7cw3VKeEoK6sKT.EmDiXeP91/CSvXN4dg','admin','ak_656a840478a671a3','2023-01-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$8TqrKALJPNZ8A1b4fWjE41cZRKNTOTJn5Y0p8BBn6qUs1MWAQ2Nye','user','ak_ae68566ffcd5f2cf','2023-01-20 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$ePe2Ruhyymch6PABFMnrWpSsFem1xKrfI3cX79d1lAWMaJQusBW9Q','admin','ak_452b87de8d0b13ee','2023-02-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$/3PePy.AdskNAq5yxRD5VQ7Ucg3A7/cwytnrd.muO1CzykuLr9ouu','user','ak_e649d461dc8bec5b','2023-03-25 10:09: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=39331;

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


