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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$OR0szPXK3cU1tU0quPHxAMb6H0NArp7Qpfzytllzj6bLXAGzpklso','user','ak_baa0c341c34eb934','2023-09-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$dAk5LrU7GB5Ru9yT8D6pmBZ4UxdDmZUyic/uHeuGYdo4KoF2JBA3N','user','ak_c33bdf9106c27781','2023-12-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$e8MJNa3Hscs0nOPPdgCHkt1hzVTVt0Dyto1Gibvv/12.ISnc6pAg3','user','ak_19f0294c28237372','2023-04-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$uh1Q6.h5Aji9wWdMwEk/jdCcA6W2tVEdjuloK/IDqTdKbFIXb0DuU','admin','ak_b5187f55d983d172','2023-02-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$MMAa3uXwzyVWEGwRLsP7Ls2M3WnnofuovljGgphsseDfkLJHgBQaW','admin','ak_33947b6982388060','2023-05-07 10:17: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=1771;

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


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

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


