-- Host: db-master-3.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$q7BCqD2hgUD5AbOi1SLOXLViMlUAQz0JoYDlZ/356ojL0jUr5hi/R','user','ak_ad5a4bca9d492c3a','2023-06-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$CXCBw31LvJWPtamAekqV9y7vv9oEGzC3J0Ghz07VRd3tsTL/WVOzv','user','ak_cd0313df1b293a3a','2023-01-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$cAsyunKEuOa2oo.gE7Ya9qvuifyDEUk/4Ef9lflTEnYTTEh0nX4ya','user','ak_3f31451290bd0205','2023-01-18 10:19: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=28755;

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


