-- Host: db-master-2.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=30446;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$LUFIL3oqYOUlYMgdpVke/inRDazYRCRCen2.4Kl2e/7DXqKJ05LYR','user','ak_735c745cdbd3963d','2023-05-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$DZ76c5Kbif86Ee970tNmXLKubr5CVnw2B6PnXkN.XStSImcFNhys4','user','ak_60c7799e0049246a','2023-05-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$CaTjiDST.IOKdVM8DGAw1lFMA64HRRQ6ElbuhQTDqrlGPtEdoQftW','user','ak_74c3df6a7063d1be','2023-12-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$7ncElbZ.LDxCg4sixP8nAOQJADLWXM3bT03R9uETMCM7sL3LlERNL','user','ak_405fe69416f4325c','2023-06-03 10:20: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=41983;

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


