-- Host: db-master-3.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=35752;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$8wfQ/2YpP5cu8ebT1TWtMdXUwcCjDv/ZncUHunxDxyrdZMEjxPpLD','user','ak_8c260199033e2263','2023-02-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$U7y0O1z2Bff9syeXfahjfl0oC8.X7SNXc.d.RTse0C272bJNtQa4n','user','ak_e0873306a58be7af','2023-04-22 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$clwkPFJ.OAt05uBkU9MeehQ.9fKAmFZxbWpDuPkqee6xtkne/m0iD','user','ak_9346287ba7c7881f','2023-12-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$c5PFBq6B19P9OCOvJ1SVprK0TDiSKvrN7JFw5bB2bTz9opArs5RKS','user','ak_9c3cea1cf39fcb49','2023-04-20 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$IlbvjAIbEGsBR9OjO/PcPlOnhd.nF9YrYTG0PMq.uu2GXDKAeDfJE','user','ak_3a5bf2f361c2f2fd','2023-10-07 10:23:00',NULL);

