-- Host: db-master-5.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=7296;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$fp2H/1UiJcGj4VA5CHasWwzxAK6b4ez9BSqXemoaIR3S0hCI9sWo8','admin','ak_f7a777d98f6ce1e8','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$fGyUR949tQFKFI.8orSsyt8txqt54BKa4UX0wRXr64LpntyZOgejX','admin','ak_67f1426951fd4841','2023-08-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$iG2WW.3DwH0jFCY8Mt8K23sRSvedgM/2Kay6QUy944mJZ8O2sqBaO','user','ak_9f3441ec3d56c325','2023-09-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$fgMhjrqEjT6mgW.VxZr5oadBa8DLYpZaK8yQo4Hp0Rqgezm6ku0dQ','user','ak_b27d315d7cb6b960','2023-05-13 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$2rvSVzTIBAErO1/Agj9RF0fN5y87OrXPKgfj36d5muQ9xpJY28a0b','user','ak_63525169340e304e','2023-11-01 10:09:00',NULL);

