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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Txaj1IXPHT5R8XNk96kgEB15GlEqpee3lK1mV7krwjpezoaxia0tR','user','ak_f759ce9500366da5','2023-10-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Oae50Q..Xn7X481bZFiXkCsbmdD/plBBC7HYOsXAA55P8j9h8x5Wx','user','ak_676596bead99623b','2023-07-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$jgSrB9X/zGSyjhtIE69B6FnOMh6MogC/Z2MehFo0RJjHKFgfl.Ogf','user','ak_44bde2d83bfddccd','2023-08-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$PL0ooxgyHl5szFrhcDE6e6FOdui81MYg1k1pCVr8MAYiJUABtzwor','user','ak_65561454203b1465','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ImGuF8AjZmnYDRLEIhVN8p37aYrDIyltfiXKmzyqfQI6wD1py45HT','user','ak_69f9f2c34adbd837','2023-02-23 10:02: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=40742;

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


