-- Host: db-master-1.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=22215;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ObNx9pK3ecCE8xWRWGVQ3pGl97Ts/FE1iD.KXaGbhuudOI3wji61c','user','ak_6204a22fa1289d7f','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$B3EtsKaOzdYf3eqSZoFxi5U3w1SqbeKczgaE/TdyzRawNZoZmQ5rA','user','ak_708c179b4683488f','2023-06-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$AOWLeRrQUPnr6SboMPDNBMS2XK5.6TGHppcIXOt5al9SqJ4nHHkZJ','user','ak_234a62fef66ebd1c','2023-08-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$O1zkpsx016eVqEr8gHYCJRJYadDED8FLPPnTyd9.cJujMgf3hDOus','user','ak_fc0754fe750af486','2023-03-08 10:07: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=22974;

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


