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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$FAHd35GDW5ly3E381Y/Z91gi14rt0WcATIO7T8MPYtenwPN/FJJRn','user','ak_52ae7a5cad612c50','2023-07-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$wnC5/xbCXFp5Fv6AkunjrOcUx4xoungQnDq8UdfbaAiJnZjMWOVoV','user','ak_25888a43c53b7200','2023-06-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$SxtTGmyd0Lox/z44WcUzkKpDelfo3JaRNb1.75vYqpXuEZsiFGD0i','user','ak_940e1fb23cad7522','2023-02-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$eZD.IOGvWc9HCbEgao0vHg2epJNFKTBL/A4WALW80W3nVIIjOdU3q','user','ak_c5595da945818f5e','2023-06-22 10:02:00',NULL);

