-- Host: db-master-9.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=40428;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$UDCQ8sXwqGGCKPQmFmgyM.A5YtpxoTqo9B8yMXFreF.yVq6gIDMTD','admin','ak_f1d6e698dadf8af6','2023-10-08 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$fEIbjwZsVlH/XWYG00AEb9dnLcPllezPA8ikbQuRQAzqI/yZ8Ypmr','admin','ak_3eb75a833372d5a4','2023-07-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$CHZvarGb8ItG7GgLOTdjeZhsbpGgXSAT2bY3Ws1BNyOujhlZQcSoT','user','ak_74b4823607bbedec','2023-02-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Fvbw8C2UyzTWnb9uqNwcR0KsDlznbpvfsa08tU/acbQ0ohuy3eVf.','user','ak_b4cf996a759384d5','2023-01-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$ck0RBC4CDxTBC5Xw0pjB7SSCV3HRZGPIExQZjTX445ioV3Njfc1cK','user','ak_c9ffa383872f5cf6','2023-04-06 10:21: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=32694;

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


