-- Host: db-master-3.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=27655;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$/W/zz1ScV/rK/VxFfe8AHfj357m0YpbP/oalY26EUFmeTlQDaU7BM','user','ak_5f0d0c403d7ac656','2023-04-05 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$5zDOGHU9tz.ctyxLcHLrDx/ahEn9hKynyTWcq6btvQz.431NJbHz8','user','ak_dee1c4015586dd4a','2023-03-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$1Bn7Lj3clU3CXd9v/pdLeNUcSd4PIp0qw5vO7xCfTuMPRFrhMt8dp','admin','ak_3e7d216470351467','2023-01-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$mGBcm9PgiSbLOLJMY5nXvuV4ICCCNhoRzE4V3z.d4IGzFyXfvmvLo','admin','ak_3b80cef93c46adbd','2023-04-07 10:06:00',NULL);

