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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$CSNwu7QuopaopFJpSA2ESwB3QFmAfeqM8LXkKAmY47JPfs81/FLTI','user','ak_0fea2539e8e48f6e','2023-04-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$XC4BqAeZwIs8.EQgSbrSrBD12bp6arpRqFz7UxMYzf4gmPjWCEBQJ','user','ak_3ae15c937cb256d5','2023-12-20 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$fVTdT97KMvowBJUVtyWKJhGWnEeH0u4mWoYfZSpnPRmSHuOkHhhOX','admin','ak_e97be3c5551b666a','2023-01-02 10:06: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=50887;

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


