-- Host: db-master-9.internal    Database: production_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=25452;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Ki.h/xLOccNflvdJbaZeFTxhWGasJk6JbDR5m2Lt6S235vBSAK7Q3','admin','ak_73f66bc8410ed476','2023-12-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$QBodOh5csuHpJRyFxkKwo8sDP.lSRUkMfh8LNgCT4zxl9jpFNAN06','user','ak_7b0f94f11477ed88','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$fgNYmRB0YIaR95fUcjSPUOatR2sMJQmC6EkdXfarPHcfo5iZkivOq','admin','ak_235883690903c0f8','2023-05-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$RKCwfy/jc5Uxn.l5o7cX0fCEDgnLK65pgXF1B9Tzzi8jZGRv4zsch','user','ak_6f1f5023a34633da','2023-04-28 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$pWH/prYuh.bWkHfenKHWddBJD3PbuYm5kCdlop6FcGdu1MrHN3GQ7','user','ak_e6ce601b52a023a9','2023-03-02 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$0UVmE3zN2hUXRBrijiQ8x3pa0DWVAQ2Q6lQO4shYXGIEY3kPaZ7E3','user','ak_70be8786d1fa4458','2023-02-15 10:03:00',NULL);

