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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$SVYYql0Y9WR4EwWmqge8hQBlsGMH0iMlx5BzdElVsMFcP/0kxUcXm','user','ak_9ac11e215e99b17f','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Rw.sJ6/WF21B0Vk6cr.peN.Xmyi5caBs4vxu6tndNQ2w5k4ZSUyLI','user','ak_78676422f6713669','2023-06-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$vlleZMRtBN6RhRDPq0XeZD9xRqYVE4SkYubzwMyvDME5rLfqv9VBF','admin','ak_508bdfb220f79521','2023-06-13 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$geZK0D/O0kkkkacpG/h/vJdoXQAg9KtO7c0FiIWRKMVvHEbkMAFwB','user','ak_078990fc758bccbd','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$6Sbu4KQzCSjiXOxCpt3s67W7GPPXw/QN9XWi93mzc2DO4W8Cz8.7o','user','ak_3347881b793c7401','2023-06-23 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$qhen72Rg2MbQNzoH0yJt/Ya6FNI/x4Sw8wKT1iAh3z6fLKUAkuMOy','user','ak_1a9fa2b1bd9a7941','2023-07-26 10:21: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=2317;

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


