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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$SI6rEZSAccwPbv/E16XYlM5ZHX/KVrhXMsJUBA6lohPRYJ2aj43xG','user','ak_133f81c3eb8d0a79','2023-05-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$3IREexu8Gz8609B8JwCrSyVnbOXRf6gOTxwkPC2LgfNUlXNmBXK.K','user','ak_575339806c4be9d3','2023-02-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6WarwL1m2ZTtoA7A7XagAJ6UYP7e9wxh1kBsEcs0MsSslSMfempxb','user','ak_4f159ad1cb477fd2','2023-10-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$vB/1v91YJJCcbR2iqd.OWW.epkfZ6Y2zarx2PzYYXMDmlTlTA6soE','user','ak_6659a3f4e4f5a31a','2023-11-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$3/u82kFW/ei1vXh5wP727vOph9oQT6PzGv1NBUEuHx8GdtKa6cZtq','user','ak_c835e8e3dbf7a3b7','2023-02-15 10:07:00',NULL);

