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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47795;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$jFXtFheEtJARsmao9Kx8R0U7p20eVlR7DHsmM4skoOSHPdnk80kdM','admin','ak_748075f193b52bcf','2023-12-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$85S9jd.Esd8gfRslT2EiVl3PL7U6KISMSJhe2m91N7py4T8YlkDqA','user','ak_9803bad632d219d5','2023-09-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MEfKJU94sBmk2y2K8Cclflj2UkvKmSqCmuTsUl4uIkPjEjF5tPM/m','admin','ak_6b83595879a4d480','2023-10-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$rtpn6y4btOdNOCakm24/q7CcoEeZ5PiLtaTlSD72h8fDBhlaNTSXv','user','ak_dc9f241c94456574','2023-02-27 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$AAfFaikOAPyrXVfLTvhGOUkXquq9GpeRutw5kSEhAUvHNed8QyUmY','user','ak_e156eb3261b24e7e','2023-11-09 10:07:00',NULL);

