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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$2iUksAzcyGIF400fuNurj6G9nyTytbgY9JIYYBFIM/rX98B5eoBCz','user','ak_7ad19603decef79d','2023-08-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$oHprhjY2G6OBhek8EZW3MnSbVV1SgfaQaI7K0wnMCT9D4UP0h/5fZ','user','ak_42d3c9c28b08d4d5','2023-07-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$k4zADwROhZwRWmFV0gGd3bZmiwm8jQnCCebwGZ0Egynae.K1H85LY','user','ak_c5ef548d8273ab2c','2023-03-06 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$tc71Zp1SQe9Tqz4KtLctxOuqhKOnhHk6pRxqfUf1/xSFfQqmO7v3a','user','ak_eeefcba5c46ece96','2023-08-17 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$T0YYe6naINldKbjg/QSU9KqE20blz/JrgJiiRgyf/n12siJAbT/o4','user','ak_fe50cc0ac885e16c','2023-03-19 10:00: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=47438;

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


