-- Host: db-master-4.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=43742;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$m23feqM8ytJX5QnLVJcTo7509DXCnKLNxSvVZUi5yi57uQ0Wu1yE7','user','ak_eba7d1a50d353fae','2023-03-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$aoEiT/1DDuGlpWLWdERxYNGnEara.OCWRRXeJ28ggeTeq9PJnghGY','user','ak_24a8c8deba73240a','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$3j4mZ7sidlXRTjxdxLyFQD9C.dLSbZaEJCvIN8fWseivzIiphUxYB','admin','ak_2b200b56888abbc1','2023-07-24 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$TgJ46CzTknF0tzgjijafXTwoFANdUntE8HjrqZ/q9FFrBPYMSHuZW','admin','ak_e60063eff0b04d57','2023-11-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$4a4AbMpTcyaDGpDugCWdA9VbnEBMZ/I1LbCtckot5gb73o0eariCk','admin','ak_bb73ee9314c2eb50','2023-03-18 10:02:00',NULL);

