-- Host: db-master-1.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=5417;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$V8Er5kYhQDg1tK3u6O4.ePiGpxmibiiALWDCjg3xlyRf7W/wwPAPc','user','ak_fa796b86a995b85a','2023-04-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$mO5eDQMbuuT02rYxW1ozun48tlZ.4TD08OYBWeJIRz8e2csZZBPVF','user','ak_b9f3ef547ff90ee4','2023-07-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$60UZlSqwzBxA..jMogyDPStjs4bCzvoYOoqTqEOnupDF/EY3q6/vj','admin','ak_3bca017e56165d83','2023-02-15 10:02:00',NULL);

