-- Host: db-master-0.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=6210;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$/Psj5yUzNrHH40RChM9bXxTb5s7dwKHyQ9.smFC9a7yccKS/CaelB','user','ak_572842ecaea51c93','2023-03-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$oIrInlc01hWzraHqiVnApxUvTWeX9.0EzonY4AFWPOIaNsC8cs4uI','admin','ak_bbfd663a0f188ec5','2023-06-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$DDRCOv.B4pJk58WZid1fADzym5aNFk6wqXwHeUTj2PCTjafRQb51H','admin','ak_d523e23f04b41074','2023-06-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$SY4lb.0jXiuUbQ0nSQbQmi5Je77uh6KWvv.e2Ou5TGQ1A6JPsCzVb','user','ak_7f7d870f48293492','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ln9QhaXTrSVY6BTBBEWFY3URI3dOAAsoj4MK/7ZJYPgh1LaAd.V67','user','ak_857b9dc76ca4bfd1','2023-03-17 10:03:00',NULL);

