-- Host: db-master-2.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$s13rzXCD35JHUjhLFVjU0K04KZcFNFxzPhb7WVlm3NKm84a0wtxwh','user','ak_44c634ab1c45b9be','2023-04-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$aUqATJJ8tMYDYxK1xhlNF5HgvJxCwn5uE6PkCXqLgxTkV0RK4tCY/','user','ak_4ca9f655e9265423','2023-02-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$7cYY.F/Cl5lRND4m5aM3I3KaLhS7kSND29zSq4iUDuUxz9W128uFN','admin','ak_8e734d20f6e97d39','2023-04-14 10:16: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=18989;

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


