-- Host: db-master-0.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=35467;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$AzP3HXRurOt/zJLhfVp9xSZp4xoNeUaSlzkTjiDUKtEHE8ts5kCjo','user','ak_7b3b9f820959d084','2023-01-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$1ohsOAcq5SYZ00R8.w0L1SFnIOSnBa8BVPRpxMEFIbg4wnhfvzV4H','user','ak_a0dbb32f248c654c','2023-06-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$XmQAT9ojVEqXX9Ul8BRSSB6E9MvYHRJuH1Ko2k6mTuYFSCPw6Wt5a','user','ak_6b50dcf743113755','2023-11-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$9xkXEXHoMA04XhzozHgrMzqYIcs4l/EwDcYRPnjBgRJp0Jby/1.9U','user','ak_7add8998024d9fb3','2023-01-24 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$jHZYd546IWGKU3jhAOaqES7EveZlkZlsdKhROw80acwdQ1A.ZIItZ','user','ak_b1dc65bae285d404','2023-03-15 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$arMqP5X.Iwlu8TxfzQgMasVFiM0CCTOiPwdQHM.5tnyYYMXZXWQmB','user','ak_bae257ca64050195','2023-04-12 10:16:00',NULL);

