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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$.5xb2DI5QB6IdGOkEBMkJmivf/pYKJ3pPPZwvBwXM9GPDueIiLvKk','admin','ak_a11ea5ebb37c2f2d','2023-04-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$q.FKerN9lkKxpc0TvrodtPFF8D6A.dNSj67vKU6fbvveUy.5tfOQd','user','ak_b998c795364bdf17','2023-08-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$2Fd4GJZJiPtUegHtT97lnAUEpziIQA2ReQA3OSkntSyTzZJA3.gbR','user','ak_ac06cdd336990282','2023-08-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$t63oS/09cYDsM3F/S/H.5BmpZyUgfqNLrZM/7q./TK8uQLU6uNK/N','user','ak_95df5f0b6a7117cd','2023-05-01 10:01:00',NULL);

