-- Host: db-master-5.internal    Database: production_db


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$TQLumn1HK7BsZm6GatVR5wsnnUDbFsBfWG/m.LvwJAz96dcaOvAho','user','ak_81f430539041e482','2023-09-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$IlKE8gRqZJZx.p4Bimwf.a7wmTNmzBhxYyrkSWa9WoQobR29IfJ5t','user','ak_fbcc0714f65b1050','2023-01-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$P4ZLZ55QVc09n9cRiu1IWW6MaGu7rCdacGhMzMfYAZX.nQri4VxAO','user','ak_d8faccc8f674ef8f','2023-01-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Nzvhenw.Zjze4bFoZNKF7yYuqWbcH78meZl8UfAQDDY9Bjcby7Xnj','user','ak_1d64728a2decf99e','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$DdPtNMKXyD7FqVDMVWjA7zYdrOFa3GOc8m3.wIC3.lNN7cIiiyZcP','user','ak_e0d1f873e5bb693c','2023-03-26 10:08:00',NULL);

