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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iNJ8AJBDYL3/g/lxavEhhnPbWRrb/D2Rs3DeBQCzOMrFAfgFE7gd1','admin','ak_847d77c6c56019e2','2023-09-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$KF4ir6ldyR1.h33rq5KCo58J4Hl6hZeZYtD51C8sogCuzdcYQVV3d','admin','ak_50cf291dd06863c7','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$7ZqMcJ6E4A52RxxSQvw2VxkhtODL052zzQuMnIMHXaGGlMnCsZNJb','user','ak_d3debee697a0f22d','2023-08-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$GD8NHfPjVaXy/hPIy648LtLiWRXBxASrCoejGAHRg2emO1f28vadl','user','ak_842ae9ddb0f6ca80','2023-09-04 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$nGQr4AsbdZWmT6t2S8NT3k3evpLv3r8a9a8v2Vs/hFzCEMT/0FVM8','user','ak_81831d33b54bc2b6','2023-05-12 10:19:00',NULL);

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

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

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


