-- Host: db-master-5.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=23652;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Fo0AKYKXi6qBO8.cTO9obpgweZuKnX.lrJUkulXBgRzY/s3ZdDKDN','user','ak_e215a78081aeb241','2023-05-16 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$VNUZL8N5VHabTFUsRTWPBNjDoX0qhugG0fws1Vy3yDjcG0.AkWg/P','user','ak_ee842ad24c73df7a','2023-05-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ySzdYGfTzeYopbgTKtELg3NnW49qEORjOmwOUbBkWk2N11hBPzo8v','user','ak_92a254c2c349e329','2023-12-04 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$KRwB3d/9fke1CEgf0YjW6Aab3PFcZ9wVBFiUYOO57f.qu/nOnuTk2','admin','ak_5812e44045af3b46','2023-11-19 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$ENMWqHkW9RbxtMFGeVRc8ghCCmFtHCcSQ3Mz0doYodj0PnmEhSMIv','admin','ak_0b3fb5400ffe6130','2023-09-03 10:20: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=24400;

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


