-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$y99x8s8.DS193TAZcAfD9fJV2ptCMENJ2b.MFpLJmnjlcXdAQ5vtp','user','ak_819ea6dee9094e66','2023-03-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kOjzkZEKdbfjQvdqA.XVoUZZUmJeDp.0v1yFyxlfbfotc9VqRO2zF','admin','ak_7b48533e47b5fc60','2023-11-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$vHZpZSaOVdyXaYTZia.grV9F1g6dGvyzd8oH5aKo3Peg3.Plv7zRM','user','ak_8e5101812fbcb1bf','2023-11-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$2cjH2ygXbDS89mS2nTxz1Y3cuHeuaupgeBNCMQgKeR9Xw6w6Dmtz3','user','ak_dd4ea7c734f0290d','2023-03-24 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$zTC7HwMDOa6gkePxaQg7f9I/erhNhHhdZ/azwA8oSo20lGrialujq','admin','ak_b3caa61c404b600e','2023-11-05 10:01:00',NULL);

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

--
-- Dumping data for table `products`
--


