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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$SrIpxS2OQkY8h/xFalcaYKjUlUeEw.tM1QEnLOrInEbiIHuvh2.rz','user','ak_d5419b4b97e924fa','2023-01-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$YGddw9Q1OdGDpaCIEo6LLBO0sA0qE8N0FcJGqe7gwjxct7hwK97vT','admin','ak_d76808f88cc2af1f','2023-12-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$phy9XYWDa5uE4mnuD2Zk3gr4f4k/Ttv8CHTqP8XnnFBMUV2xVa0yt','admin','ak_552d2e137355db13','2023-06-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$s03xw.grpCUqYH8OsKQuIoKgrUretDJYNiP636oyo1Q7jO9fpmu0/','user','ak_fea06a5ceae14fd6','2023-01-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$ya8/RldMfVlmh2VbtTAHpYBA2vL5iLx74rPH1ma9cglxKeQn90ECP','admin','ak_881f0243c08f2f34','2023-02-13 10:09:00',NULL);

