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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$4jV2R/QJlSw2318rsxGB1VTj7zio8Sitq6Y1mGym2wqM/guaKqbif','admin','ak_6cd895f8ff672064','2023-09-16 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$93vEUNsmB1MrwW80wvdjILx6e2d3qWHTPixmpNpRMRd83zKcNIreK','user','ak_06ecdee20fa06654','2023-01-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$CXPVupIS7yIRk9sU3hzz9EM6eOVBTpJIbDRR2.829IPAEiCxzPe4W','user','ak_3123674c68ce734a','2023-12-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$mh3eFt7L7vYpdd33MiItxyIbDJGMnz3WdcVbOvwxK1bnQofr2Rall','user','ak_0c136318af65587c','2023-04-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$OrHRkt799zamZRh3ClpV1Ye0Doqdh5DLUSwMYWicySQOMW21RFBBP','user','ak_a4e82de3a91826d8','2023-06-07 10:18: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=25150;

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

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


