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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$UYYSOeL1PGTPvdiRASXHQiGRT.f5srs2Db6HTtQeLfygx8z9eVKt2','user','ak_e626e1e55a7daf98','2023-02-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$sAS1XpZGNOIkqWb1inCnu3Bg3rTgbXw.UkGN1Hbyn7e99r/5W/LDY','user','ak_4d34321a26e514a3','2023-04-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$//0ZdO6QaTnnSrl1Rz3UBEogy/MPXDHrpBZ7D1b3I.sf/VKlsOzal','user','ak_2b243933d0bffc3e','2023-11-27 10:16:00',NULL);

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

--
-- Dumping data for table `products`
--


