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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$/zteVOtMtt9LGO3IJU/jZxDUb5wBulITC/E.ABL/zk/QfAFm6atgp','admin','ak_c13d9184e3af0f54','2023-09-24 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$riuYqLlXkAbliss9746nvvYmcrDhQial0bLhOYDaQus.PxvX9EHfY','admin','ak_27caf8bea5adc4d5','2023-11-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$s0.6DkW3lqngT3n1FiliQMNOajavU8oSyC/4V/kGcc8YeK2c1/W1f','user','ak_8589b7adccf0d019','2023-12-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$YSnF22Ctuw/0bhc/NxpvIuxz/Jahm22nzUWybGLsehAukAW930UWT','user','ak_b7b128d39c83d748','2023-08-09 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$qQJcmeMcWLpG7/wVavV5K0oyo0YcY.PJYYImkaXcpUZ.VrJa5aJPy','admin','ak_64928ca64830bda7','2023-04-16 10:07: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=31555;

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


