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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$/S1XPhVo9bXDXU2HjxAclpVZQyUamVI4sy//fvzXTJ.Xrhh1xP4Fu','user','ak_5f097151e61f4a9f','2023-06-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Rg6fKwYyUOI/OYsDR4lgujDfXSUfm/0AYT7c/KwWEO4p36HfISzib','user','ak_09d193d4e06c9c80','2023-01-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$2WxlbQIcVJFdgKP8gPCA28rqATyccZb8sVzC1Ci6sjGrJbjSOdO9w','user','ak_fc0404727496eeb4','2023-05-07 10:05: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=24573;

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


