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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$dxFHSMxQsEzNr62mxLU1e9Ob6TuUWIZaKKXMUqfDm69ImhHddjUol','admin','ak_27915ad74afa24b3','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$L45.G7iJCWLD05fl1XOUB4QvyegmOiO3e9FrsxQRzVwJCk/lGD5Zs','user','ak_196f6a0b73a03948','2023-10-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$IrEMVeccaVwExirtBvtc03oflpy/VCof6QesdU.EMmlPLHUQz996B','admin','ak_4d29162f672260c9','2023-06-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$/cI6nGiAnLcdOCLM7X.DuJNn1PAlP8B3leR83JsXo1KVGAFlY2F6a','user','ak_a085d2a4714ce68d','2023-03-09 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$FXKOJCyaD1gQ5Eq7MCZo/tx5a233dYUiy4UQwaYqShiSyaZLpuvO8','admin','ak_9af55d8b6fe4bae0','2023-12-09 10:02: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=27704;

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


