-- Host: db-master-6.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=9963;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$EZwuzWuqGkdrAUPpYtrMooLzboADMSveKgGO0VThIp2AazN4bIqnm','user','ak_8fce997f5e337621','2023-07-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$vr/yTtpoGbpD8Q6nuNpmzKlmFKayLH3aCmqHjt4MS7coSAdKk5AgZ','user','ak_bb664bbd6e1c4458','2023-09-13 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$zryzWgH0JvOl7ZeEd4h0hIdELol0qNCzUN8s9v0tXWevssq0YR8CM','user','ak_1939332e86a67c68','2023-09-08 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$VkRE3N5PiWqTP0.ybkOTRb11AFqyjSVvm7lN.PFmzyEw3u8Z41ofO','user','ak_31548e840bd4a11c','2023-09-26 10:00: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=30547;

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


