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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$LBCvtS97uZLz3/aQbK5CmJn4u4qXxwmKgb8J8c.ZRgquwX5C0q1FU','user','ak_d3688c72403c7dd7','2023-05-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8xRJjnb5Ackm4FT6IRnosqbnvjwQdpSSjQaKYoUmIL6Scs/KmDM3l','admin','ak_e8f01da1f7bc51e8','2023-05-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$F08nOMPF8JUIReYniwA2RVA4tjxFk1y.0WR/uy2OUAN1.jcF9F6CY','user','ak_a9e7e86663db086f','2023-08-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$A.b.x3z73d/xzRbHco0BtrUTR7hq6S3RGXcHaCV/23fETwV8XRDNw','user','ak_dd9987ec5aa7e1a7','2023-09-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$qrOnyxKBPZL4.wBkLjoRcA7jPnRr/gxoUHB9e7ZgX23TtG4Nn.ZL7','user','ak_2686ff1b7d52e8dd','2023-03-11 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$aPzhxXQPUPWb2xzqY8YBGuAGe3LGyuPNMn9QE1JwDO040kZs6GDEJ','admin','ak_4aa5d12e4b4acc90','2023-11-18 10:13:00',NULL);

