-- Host: db-master-2.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=30303;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$bdUICo8Rmqn2fRt/aLuKAjx4LlsbsRnR8OHf49D76izc0rMTZ1dNz','admin','ak_c933c4ee7885d4ec','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Umj3NVNPGqxkSQe9pkcjBiIoDEraH8t2C57uuij1eyvPAczuT.12c','user','ak_58cede8fd399fc7a','2023-10-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$dabw9BX53j.S.gu8HPVxz9ObwiBNQVQmwNN8gI7ItRlMAz7LrpkE3','user','ak_ccd8ed9dbf47034a','2023-12-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$pjmeRK.Z9mn.kCe7r94Rho3vMwqXXsRpWNJaVL4FSpz.D.pPk6PiR','user','ak_72a2108abe42bb36','2023-01-05 10:01: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=3378;

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


