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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$GktnF8vDZj5.1CffEPJN/MV8o..GiHIEzswRGoS7OvyXRagKVGOZN','admin','ak_e070771fc0e891db','2023-03-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$5WpM/.aSXlKYwmklkp6SzmpQL2QXOs0vf8sF43Yn75sT.6E/woXjp','user','ak_89a686a395cf9016','2023-03-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$pgXy3OMroLUncBjIWh/DC7LG.3DDrluKp6dGWSVuXrnxukgxCCe6h','admin','ak_efccad2caa346f08','2023-02-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$.wpLZHttC0GmYSGLCi7zD7vLqEF17TTQxLt5qoohFuR5sdHGcn1GU','admin','ak_1b65a54f1e807983','2023-04-14 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=36623;

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


