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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$X0xhwSFaJBCoS7abIFQtZ0KuMQM88YFsT7Bl3KADM7WD.XxmSkwFY','admin','ak_6fbb13be3d5bb14b','2023-07-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$zKfxzPUOKiO64A/uPI/Ie.eQdGfVaaBvPGuPT0JPPTr9N9Jd2NjgE','user','ak_6b568ac087b44189','2023-03-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ROAAA69Uw7iIxsuaIZIEsAOzusU9bCD.RJ4C6bUHnod4YCnwkQvkS','user','ak_7d883d8cea5ae8c6','2023-05-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$s6DuSYO5Q37L6olhI/0BvY2V/1U26BXoAxblo1SB1ZWl./CL2WRHe','user','ak_35eaedac8ca1d9a3','2023-01-20 10:00: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=2485;

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


