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


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lGQ8daUTIy8R0Jf9VPJxiv5Dnzj3VVSgrPjCVpjSJzPYyMdEOP8Yo','user','ak_d3f11fd0390b6a2e','2023-01-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$YVcE9psiUH/ycVqoLdfLCc/Unadg.2vx/ifHV2CpQc8v3NurYLYGK','admin','ak_9764e36d7dc4d929','2023-12-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ZFQJztkije/K7YAT/l6Xv3H73ULKZg1MIHa5/X4aRWbbyZQXKZtqo','user','ak_3137589dbbd0d954','2023-04-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$2g.WZ/Kcm8GhqHXB7VTVy1I.RqQ0dDIhoZRLO4o6wT2Onw7rImQnU','admin','ak_c0783df008112cfd','2023-10-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$TGjkf2MkB62F90UHgiwkkbQ0T8iO1cB1EqfDV/O3nQs5xIt6kJIiX','user','ak_feec5bfcbbb76ac4','2023-04-13 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$fJRdfPhPuO.iGYhm196Zwy14t/M5xHjFV0Z89RYw4bhNzYv88fnBB','user','ak_0a277affdaa18315','2023-11-14 10:04:00',NULL);

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

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


