-- Host: db-master-1.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$OIptmusLv/scoc5Hh3d8WC/1LdVFLAzlPVVdXr7zE/S5Uah7BYyBz','user','ak_74099375202a93ee','2023-04-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$C3oa5CY5CJc1t4nu4S1AQ6Na1vDR6ibutlz7Lxk9oD3p91h6I8Ib4','admin','ak_a5db521eba5de00e','2023-12-04 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$LNNsdBesy7q/T86IztD2Dp0gsRy28xZuRIAHmdjRr4EvKtljn9PIW','admin','ak_181d926ad8a5bb5e','2023-11-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$8kAS.c.3u87clW6OJwKsbVRr2.voqOnCLMKlTc.kT01aUrsUEQJlL','user','ak_7f06aa5107a2b016','2023-11-25 10:12:00',NULL);

