-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$hgYdKdB.bhBLY9GAz8L8WasMf/TSuMpmCGA4rqMRGlgGAWCeo9XBD','user','ak_4028033e805a10fb','2023-05-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$dC1ItPTlpim5cBHwOS.SFElyR49RnZsAUBfoOJZ1QKTgkv8r.CR.Y','user','ak_e373a1287caf21ee','2023-02-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$MHKsMJhcVSGHcbaNt4KPuS/HKZbooZ0WvAGtX.lPrfBtlfnwPHIjp','user','ak_71a3793f7ed04b00','2023-05-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$b69alTy30XUHN1m8tBYfnW/Dk8JiGZYEYFtqRkj1lSJ9PwD2NuC7Z','user','ak_2d5f7e01224e766d','2023-12-16 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$CjuSRbtGyvBe2DGs/AJq2AntGhGKwvSAI/9WS/DgaH3DmE6Pf6uGT','user','ak_e79c828f0ca0ee40','2023-10-04 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$Um60Ui.TVv33zvJUhl13AtzOhuX5E0CMuaZe56WWDTxCPrWM5Wwz0','admin','ak_01044b222e18a4cc','2023-07-01 10:10:00',NULL);

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

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


