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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$U719MRDAtPNJnlXBzi8FuFHfK9ptpx4CsRv7L8FJw6suXlWb66M0M','user','ak_a9de1944ab85f078','2023-01-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$3eJq8av3Kq.CpwJWRMrb7YTYLDuwvp8bUPfwmPQQLcAc.Rt4kgGZk','user','ak_e57709345225f8f9','2023-03-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$UFlyPFrM9oEwtcuRIJQo7T7GTAEv2N1FrHWiL7rhDUIxuOe6kJGAk','admin','ak_15bfb2f11be9b566','2023-12-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$RZ7.eC9dgKjpxZdaAmnxvXTRpx5jXZFsaUjtmiV7AiwE/HAUHxy.t','user','ak_b668610cd9f1d7ae','2023-04-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Rksr/HGN.MegNCLus57CRYjRQf3KCY/Ik1GpIn5qbXVANjNSer5p0','admin','ak_54ff4e445871539b','2023-05-03 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$BMQGkj1kjzIY2guP1YH5ZGxLfKdoSempgLdV/4sDU4vNHAxh/PGK5','user','ak_13a2d836d78862f6','2023-03-20 10:00:00',NULL);

