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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$AVuakUB9i4LrwlmMJSotnU/B50rGBwM3AYy367XBnzcUokBSt.j/f','user','ak_43bdc61ea468d050','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$yNxS0CxajZR1x8tPc2.XdK.d1khPM55DNHdjre0XDLCT.Q6RadVq4','admin','ak_1147639be3b85551','2023-05-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$L15NfxQBjrrelf41HL6ZF8qEFcLEGeMnmkAsegWd9aAlMe5ixFZl2','user','ak_0d2b9f30ae77c7c9','2023-09-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$nt2JBCwjcS72kyLluEozjp8nIW/QV6fPGYCsNE4z94bhrW2Mk2LUl','admin','ak_0d7bcbbd3889354a','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$n5E1MthTTdNHp3/BnoC5lFgeAitTFQegcUytZvkRc5I7AKhMpbj2h','user','ak_0f8a40acc9803b37','2023-10-14 10:06:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=48364;

--
-- Dumping data for table `sessions`
--


