-- Host: db-master-4.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$bQszi8k8gM6Av/OIQO/xBXPUlEdZGUaZwb9QfaNdlf1Dbw861vcoA','admin','ak_82c417832d61d9d5','2023-08-02 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$yBJHIVbMrxl05PDLtjc0lMzjT./OdvtzM5/TYrn8/UxPHpN7x902R','user','ak_2da356a901e77380','2023-02-12 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$A7LOAjjtxMF87v4VlCdxWZkcKAWrsPdB73Bifkv.pL6SVrooELq43','user','ak_085b3cf43736aa56','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$OozY1yxllPCI3eX7ePDYoytjjInKOKXecGAS565/wjZ6387Idmgg6','admin','ak_2cc5ba7d43faa8ba','2023-09-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$wjJw.1Avun2qW0wNWlTJPTt5KIw0TljWCsKPXI64yMqGSuxtrAQke','user','ak_35fd0243b28fc5ac','2023-02-13 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$A9WlVKJTdWf5rAkC4GvFnwxavTPNta7LXReo4LsIZhr0q9aBE21px','user','ak_28b5a50f7fa3df3f','2023-07-14 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$vM/MqQ2dzXsFdLCphac9WrzViCDroEj9.PDpQQxXJ.wE04pIf.hwW','admin','ak_42745777b30def08','2023-02-09 10:17:00',NULL);

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

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


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

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


