-- Host: db-master-7.internal    Database: webapp_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=19101;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$hiloM8l3W/BX6kx8B8CfX1ajI7kyKNxVc5rFbP72TUSc25IC.Aa0O','admin','ak_f65bde29c781ff96','2023-03-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$QTWLYJy2cBp3OodphEVclGMb9FPAekcFReDLjNl2BE5tlSyFI6RAd','user','ak_43b221aee48aaac0','2023-02-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$8iDBELN9x8.DdvgpnsmYSqwM4tfM/BjbgCe5BaWjlJFmbnooXtxZU','user','ak_e867c96547631fa9','2023-09-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$LjhuSWybiecJjdvMzZXyr1QmvdFxiR1PVa/Bts0LRaw.tlXR.vZI8','admin','ak_860241e4bc20df22','2023-02-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$8yJjVDpMcoMOZUVwUwqFAar0XVdSuyymSnEXxN4IcnmSdtcnkZzu5','user','ak_a820fc0a2a1e39b7','2023-07-05 10:12: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=41205;

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


