-- Host: db-master-3.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$LP1cPMLNsVzu/vX6UnrzVvooj0Zz1PuR42GmTBKgizKdYciPHSOxA','user','ak_c907eb9eb4967a19','2023-10-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$pc0TC7CEBACt6RMkeMFP/3k6/RlFvotIFhoP.GRslvHcmvCxMrWvI','admin','ak_de2bf782255d0e53','2023-07-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$isYt3a651OlqsuVvj0vW/tftXRcDujoXx6ey/yx3l038juWaB/wgz','admin','ak_8162f7eb3beadbd5','2023-10-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$XlT6MnLuGmHwwbURVQFzrboM27PIoj8XhOIysD1h2fSP5yBFG0ohL','admin','ak_b4ec7d5ec3d98df3','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$RBanVfmUt2pTfi6LKeNrAduFwRoZbdTezdZWzZM0CqBmgcG/uWJeB','admin','ak_e75c1c6c4332d99f','2023-07-26 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$59tHR.raVWmQ0qDTSa2MByPR.hhdHOZJQCuKkNzFHqG7xQqNd1Z7R','user','ak_299d9df441551993','2023-06-11 10:03:00',NULL);

