-- Host: db-master-1.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=39205;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$PEvJtSTvWoHW.vJsy/di3bAFIhukZVg3b9dbwlpLuUegFUm2nKc12','user','ak_914614f245f31c26','2023-08-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$f7ey.MtR6Yw5NlBV5A1T8BVJDe0V7saQxnL8m9eZs8u4xVqXDjgDd','user','ak_eebef61a0d06e160','2023-01-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$EejsgN4OsCPbkF9T8luTMpdM3d5TUDnKtZfMoRizWrT/uXdB88AH3','admin','ak_7549cfa8c2956337','2023-07-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$3wywK.WIUfnVz5mBylN.yXXVyGvDn7wxtdwU411tRJtwGw3K97iGi','user','ak_18ca810174d25ffb','2023-12-05 10:04:00',NULL);

