-- Host: db-master-1.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=16441;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=50998;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$l1eXQfxzyKNLAnZjjPUAaYkyDszS6Ns.K7aE8KxYTFRXiiQaqwWSV','user','ak_1f2c14203888d06c','2023-10-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$w9ZD2ZS5IX4zRc0hXSfsMVswY9khY0YXRyH/n4Ta4hfm2alaaa1js','user','ak_b4d0de066d70fc2b','2023-01-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Y.ilEDFcHx.Ze.M/LEA6cKW5bd.tG32t5SExA1oTX5I6M7.sFcSV7','admin','ak_0f5bf3509046f6e4','2023-03-08 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$q4NjlOYVEuyJk4U29DMMacpmi4WteKp.Sjm7YDfTOsV8yAK4CibF6','user','ak_1fd50966dfbd626c','2023-10-14 10:19:00',NULL);

