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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=44668;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$hBHfufhEp.YtsGPJBcFjwtf6JV4PKq2.WxpPdkFQ.qHKgClTOKyIb','user','ak_7b5b7b3cdebeb5b9','2023-06-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$M0lG7A7U1cHfRtokf9AbNP9kDApQ6y5/epXc9t.huG8x2DlFDy2bM','admin','ak_4e104d29ec579719','2023-03-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$KXiNFA2KOimEN6Urw.T6UpWmsVs9dOpJYX.eALMxDgVj8SqzlqQH4','user','ak_aa9fb58e9c3165b0','2023-07-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$emN1bUQFnHkAtw2rLMVfFrpJvxpS56cHu/ZVpBQopFFm3SQzyWpzt','user','ak_c79682d1f430afac','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$TLdS7T8.I/B5lY3GH2zIXYutXfvOfIj6MEm/QWwjhB2K2ZNwy2wj8','admin','ak_86817e9645ed1c5f','2023-08-05 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$Erkf6HWM5VSFdom9bP4vLJ9myGHOvfbV8uWN5qxJa3txL0u.hymwp','admin','ak_bc82bb756934140d','2023-03-13 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$xk9LdS/sbBQb634VSlCW36W57o7oDKMtcoHsnj4csywZCRx1RJ7KY','user','ak_3a9bc1643a4f9021','2023-08-20 10:08:00',NULL);

