-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$PomU6QtoeO/Qvw4qZOB.m4ut4ouat6hWQD2Bj3P2pyp75gyx/37Eh','user','ak_8c4b046d9b505fd3','2023-01-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$VCSwg/3o8ctZs70SiLKgzsizXgVn2RHS3mMSH3tCXoyDS6CFkGosQ','user','ak_9e2d5b96091f6563','2023-04-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$RgFuRF4328mz.pYrUmqQl/bA5FiS5zCUTtsLOgSPF3PAFCdDbC.xL','user','ak_47782013997ad4e5','2023-05-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$D5mpoZEqW11eO9EdvkDrE.Peq2W5luIBeE9KAxshwmBwt7zz0OyAH','admin','ak_64a40dde98496191','2023-03-07 10:00:00',NULL);

