-- Host: db-master-4.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=10949;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$SWsQ0CqwtFsboeGKSrLx18Raw0CDZUpEi7EHLELv79A1HJVif8Prx','admin','ak_8167b9c35a89bd08','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$aVHKl5xJnzOWJDs4Ls4CDmF8yUeDgDUxajIFBlcV.rf40kVYS2JS4','admin','ak_24aebc0dc6bdf657','2023-09-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$vS/OU5XkbFg6ft4JYek09PXJFuUOg5ite72tYWRTHFPCN/det13Np','user','ak_dbcd20e8dd2716dc','2023-12-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$UTMpkG3hPj.5d8t9gyIyDgC5LKsrHSvM5Blaob9aBRGyUlB6PRZov','user','ak_11d966cc3ddba596','2023-03-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$VN9a1B7TYet7q9L0BTzJFl0GF3YSeA0uM74Cn5PF6fVYuwVMSQEHf','admin','ak_cbf57a8eadeca55d','2023-08-22 10:00: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=14204;

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


