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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$vHKJbr0IzUV2fHqrGAB65Cp2B0lEZKN1cv0ChorraTvso3GzIPEi/','user','ak_e528ac35b660713d','2023-11-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$33GsyKrSi6l9gfgh.UeEH9e8HZCaAS3lfXT5AdSATzFKy.6ICQ45q','user','ak_f0d9572f77c7c792','2023-02-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$9tyZSsRJ31U9sMhQi/hBEdu7oVDBI3KXxItt0LUMpp9z81Vtnlvu7','admin','ak_98bfd69b5db38bc4','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$JZQG9Gg65/S37Fpi2TftoWmFH7i8Z9ID/G.Pu6bcmvaUOpH7z6nxk','admin','ak_a16de5bfab042087','2023-12-14 10:18:00',NULL);

