-- Host: db-master-3.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=26098;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Ni6fHVG8Z4RttAnOH.TdKNbaGz/nnGEUPD8DdF/W7earsLyz0Rq80','user','ak_8ffaf6559da32efd','2023-03-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ZwKC6UH2eRb7nDNh2SLIdkQwugrhNTB0aa5ifdkdI5S2Xlugz7S/U','admin','ak_22b31ac4fc6e8380','2023-01-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$O4p5AexU5zdfjRa6gC8qdP0rD5wki4FR1WXs0e1MIWPU.lZlvmoJ5','user','ak_544416c3575e024d','2023-11-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$KmpW.1zVwUnIMD2r3ucObvA0DrnVFTFMIJ7gcSrMR7YiF51e0za45','admin','ak_c35a5c03900d08bf','2023-10-11 10:12: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=1281;

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


