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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$X2S9VuEF8fbuf6ptLA99TKWR3xHqDL8JA4A4c23Usa018reI8cUe7','user','ak_83849b13f951ed98','2023-06-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$.QFCWRigaxT9PYAdoXCqutM7H3KWQKY7DRzWtcbYzcsR93DgWYjyE','user','ak_a9479fb1951c3403','2023-09-27 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$cTUWVC9gToXYDTecpMK4uZv4L6e/sWDxy00F8/c/CWEhX0XIreP2w','admin','ak_28165cd0681a1369','2023-06-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ktR.4Hlmz0vRp.rplk/W1SoA7w8fkN8zC347CrFwv6nBq7LGBLPxT','user','ak_989c854cb7c3dac7','2023-07-03 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Wz2xvj2uJSDE.156grq/bATwd9ZeqeGe8MbY0YjafNhsPR7HHUjdy','user','ak_cc5bb193c9b0991e','2023-07-17 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$lEX3KOIMNeGMvRgjvW6rWp5.klPBtL.EYH6PstV6utjtk1KEWEJA2','admin','ak_53c3ffdb2652a36c','2023-04-24 10:11:00',NULL);

