-- Host: db-master-9.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=18911;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$.JjoSmMFBrXzJOgyohxGf6m5p9EWSnvQonUrfW4efJzFWf8MyqSYF','user','ak_874ce7619bb14e3e','2023-06-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$qi0H/hSoh99l6iWEJWUFviVwy/VOXmKkDOdfgj1VKBljVtwmaI236','admin','ak_af063c0ba24296e2','2023-10-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$uZIq.JMaIW2oSMDyJOpo3xWUf/fKFmjVTa7hHMSUo/Rh6ssmENMPT','user','ak_5a75aa2e5206c63b','2023-06-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$6hL1YSmLTfYjDJtZrxyysFbmc8oAj1Cp.ILkkwEL59FDwOfAY6A6r','user','ak_10605f0aa14f9c2c','2023-03-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$TutiO9KBZ08FErXswrVnDorwK4W7qFDsfxnmD4etRJF5VgnP3NRiC','admin','ak_e07ab17eae40cca7','2023-12-05 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$xH67bmQQTBKpbWQbb55yd5YD54UXvU5KpO2lok65ikrWSdKPGrcKV','user','ak_4a129969636480b3','2023-09-14 10:05:00',NULL);

