-- Host: db-master-6.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=19453;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$oUT6MvO52nDg60AfBZbTvJH3F6tyOEX3uN2v0ivCigdrq8XfmJeag','admin','ak_9f4f6a63c0531dac','2023-10-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$nMpbex7NP/7Cjcom7nto0H.mIYVP/oTlfA00kQSYLj03nVUsD2sbC','user','ak_30dbb86dc3b9cff8','2023-04-05 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$NiV0oxTcfVXlJNnDMYatF0RWJJoqR.QwaQjjg65gah6qF1kRlKaHQ','user','ak_4b91643d66b484ea','2023-06-18 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$FhX3Iko1RTf3D4yYPrOWA6KjgJIxwqBMblcUyox3HBTkoyroBCvRQ','user','ak_8a9f0929c8bebe61','2023-09-11 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$gTOYVRsCwaOhOk6rT0WtrHoDv8K7rkgBvKA6O2dLr4Qy6coi4xxCe','user','ak_c32bb866d9ab92fe','2023-07-22 10:06:00',NULL);

