-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$2g5lbr8t2uk75kbKvi3d7SeyKYAr6u/YRLKVjq9eryJk09V8VaYE/','user','ak_e8d58f365fc1d4c0','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$1ca//f8nH22YA7xXXrZ2YYSsNy0I0QmkQg1lXSyzEQrqvz0eI8Dbq','user','ak_6bed250c1cf79387','2023-01-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$jtM1.E/hiRsi3PtNA35TuQyUV/mPlKGkD/eqDAc48j7N5ECLPPdFk','user','ak_b8c79fd5f8a50c13','2023-03-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$RL8kNEVoaoo5rWF7/3kJiQJZ0djRcUWhBCk.4lYvYejFSShOAosEs','user','ak_2e326af861c160bb','2023-10-06 10:18: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=1377;

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


