-- Host: db-master-8.internal    Database: webapp_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=30467;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$P0srIHLSQmb86J3ePergoNUtzv/R3vcZ1faVzWLfcnwcMGCu3D1cH','user','ak_555dc46a5aa2d7b1','2023-10-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$tHq0Cz5OUhj8AGGmoy1RIv1i5JJc8XQ1VFX2IIeMUz63ZnCmOVT91','user','ak_45a56efaba208a62','2023-02-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$.4HKzXt7ZxFu6/KxtY/OXIccag.2lH.3Ukc1b/Uo6sIE6eSKBGSXn','admin','ak_ea1297fd449265a0','2023-11-02 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$EkYfXLnczCnO.bDW4GbDxF2pY5F7RGd38FikEl6bXojsF3dOMV0Fh','user','ak_a0c45f1499dfa187','2023-12-15 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$QCe5f4XtGgJNJoOAtf6i3Wtw1XLF9jGTAejVli8V593f1n/Ckv1pT','user','ak_b4a192515f2ed0c3','2023-11-17 10:05: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=44660;

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


