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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$SDPHfh5RYyDV3ai8YnOQoJz5e6rPL1i81LLNJLahT0yV1p9/T/kob','admin','ak_40e49803c642a4a6','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$5HwdpFoIap1b9JvUuLHQx5D2D0be1aj3CxYj0ZFsDxJfV.3lfI0vc','admin','ak_6ca54bffc285024c','2023-07-22 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$7Gv4hqcqmuTF09igU2drdOakg3Fl/jPbXgGVGmUhNkO5KLiv26dOr','user','ak_37ddd427a023ff93','2023-02-13 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Sf2ZsfcTQzvSGUjF.KDj4nd.RPquUPRRPBzY7jpW.6O4jgRpZsHeu','user','ak_af52d4066f98a3d2','2023-09-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$iqj9qvMSzorB9bSTqZ5kKgyr7uns2fQ2k87SBEqL.Mg.SBXhxZrGD','admin','ak_a01b4e7944c82338','2023-01-04 10:21:00',NULL);

