-- Host: db-master-5.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=9216;

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$yxgyVvLKDPHi8XCSFBEJUGrUfkctMOZdXsQOtl8XQfe.NdtoiFLfY','user','ak_24cc410c12aa1ac9','2023-01-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$yEkYH4Lpr1xrLSokMFsAFQuZoFd9kAoxz6v.oci3ITjoq7y3/HWs9','user','ak_2aaceb14b48ac8de','2023-05-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$o8x5cP3c7pPEt0jL1VF4AQiORNKjCeIQaDVhJf7Km57ajSHyYbNCN','admin','ak_75e974fab52d27dd','2023-06-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BX4HgB/SCjvfzJX/9I/sUNd5RszNAGRu/D1T/yxoQFwxoR2eVKUa1','admin','ak_4a51dd3a98170763','2023-01-06 10:06:00',NULL);

