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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$wJL.CAYcBNNTENeIFIOE8nM/hmR.qslljxiuV4Zo.FXASidEpuwOx','admin','ak_9271eac75079f3fd','2023-10-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$QGT9HhK4qjCDUUV0dOzAsl8Zm3r9mwuYdtUSUNuPpVOztcdS63ZIJ','user','ak_134c0f5a1c8d79b3','2023-05-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$AkWmAJxkPllKVq4MI/rLhvHJMX9k7s2ygJMtjPrsWRBIl2i3jKRmf','admin','ak_7dd20423d8829036','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$FhADC6mjc1NV4uRY5XBUsMtZ2PFpIojS2yyNbXmVbcnbM6b8SdkmV','user','ak_6398cc7e4771d00e','2023-10-11 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$37ZVBYXjQixTrAS9RbMVbQMBGJ8xofT.SMm0Nhv1EVAaMpFo5EoOa','user','ak_fb24a0465e0e0fff','2023-05-08 10:19: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=50605;

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


