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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$SIlRkTufytvsB.jGvvtxh2bx7a0MkITaKQJcFA7d3UIz74bVWeECY','user','ak_7f57ea2ed7243e12','2023-07-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$OyT0JbFcTDhxEEk28qlWyhida552tVCBxfzfndOh11cb7RSw.oZtf','admin','ak_ce02709b139291f8','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$fcGJNjZUaewcwUx.4ZkWdtuwcsAUr5kM8klte117s7OjcA6WuM1/1','user','ak_54bf491cdb8d7314','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$hyiqvj3IW1YJFLksEtEqVy/SVSjOMyKgaw8hNbaLCbf20n0ShMCEd','user','ak_57662481efd1857b','2023-03-27 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$HIMPwc5maRF/S0REeHg4yAyOH0SUzoIWejv6Mr4H0B0cJSO1OvRPg','user','ak_cede187878e0e40a','2023-09-05 10:02: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=18273;

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


