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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$9vz3XWr2ewqaW3SaaXY7M.unU447mAA6V3peZ54INAaxsRcmlwNU3','user','ak_8406abadbc8c4760','2023-11-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$jje1hMi1eTKGaTFO5w665vSVO9fqR1nh1dwMc3r0SrmVlf6vuXgrA','admin','ak_8d179f8ed4d65c07','2023-07-01 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$Nyg5J2VJU.9FMdbnXhCI/UyMhNCNoCOsNfzKWsvBPN9WU497ci596','user','ak_b7e9152b01622095','2023-09-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$bV1V12o.WBAST47fFR.x0RoGHxAAo.WzMKfaXMF/TI9y8Jy21a/M8','user','ak_305a9f06c6d501b7','2023-07-24 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$ANgtIMGgzizJN5VVmZ6vSlXXPWuMxMriAdua4RDhRrvPShqyrgfEd','admin','ak_163889256003264c','2023-07-27 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$3qRE9ZkVla4EurBWQ5MVJSQQOX43I3jQsRQ1JljV.T/Jajk23TGBW','admin','ak_880ebf563d175014','2023-09-11 10:12: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=22092;

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


