-- Host: db-master-4.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=49430;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$4ME8BdX/JZ2cV91X4EXZDKprvwmGIYugI6Q..tD45FlZqf0TiFmFx','user','ak_0b7cb97d77b19abb','2023-02-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$1quETWqdTxXSsXm26ZGDQAeUfqIrrT2PPgLhg/vypIm4pXMEoWjRW','admin','ak_ed0c86d85442bf6c','2023-06-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Ynxhb62EIvT2IrXT7O.X6Alo1.q3XXoIWzGI5j3UV9uWNi8AzmWp6','admin','ak_69dc815be6805d55','2023-01-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ekwHNuXv72wLXRGpC8XNhxdrEP7AKJZU7.A9Xf/cSbLSf7PUWXZPJ','admin','ak_363d4fc64a1d60a2','2023-01-12 10:17: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=48286;

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


