-- Host: db-master-0.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=3817;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Xt2VDLzuU1Vv2mkoeuzkLTqEkEvfGgWqr/O1OkW1pyBYOFuGW2s1Q','user','ak_f78e1bf7609c8967','2023-03-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$.XyJPMU/2mMogxiKWb.oU98u4gJYEsoLKAOnpHx8TII3MgXcoTp5.','user','ak_09f00b33b07711ac','2023-01-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$JVDn0enlFZnFO7/Lit7xkpocoboUtMKtU/91SJ118BbnMDvY0BWFD','user','ak_4320999f397daa5d','2023-01-28 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$tDTYIpXpZpW3Su4zF9YJ8hv.xwt7Cf067qRhGhYOTkh1hUMODEZts','admin','ak_588a5b96df57f45a','2023-09-23 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$hZGXPyv8ci9We.2k.2LYFviKeKnEvwZFfeAzONxdX7dG86ASfqkP3','admin','ak_bf4fa6fcb5eaa7e7','2023-09-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$fbbJ80jjyK/40qhK8bF5/mViVBWAQW1QwmdBgV1RmYqC1mhSLaM3p','user','ak_14daf548f0272800','2023-03-11 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@corp.net','$2b$12$.u/9KNFOIMWzIlvPwbUr7cZYzIQnCa.YWmdFwwXJhnjNG4reEd8UF','admin','ak_b46b84ef93415378','2023-02-16 10:23:00',NULL);

