-- Host: db-master-2.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=49062;

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$A3S3cBfRJ8/md5UOCjWQfEwz/utf1Cocd0si628XTc1/tb2AbVbht','user','ak_b8782a1e56c60013','2023-05-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$eLLhaxeEi5Wpmff4Xbt7qp3lD7CPezhveG5rbl7e6l.gynP9PMIg9','admin','ak_6aa151115997477f','2023-11-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$f/oRY/PYGcGjhEYxxdW26ngoLstd7SAdYBrT6ELzf..hB5IXeuPfp','user','ak_5411b244a4e5a9e4','2023-03-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$h4uF4B9Fi2IPjl5f55zC2mU06ujigxDipMoEHrCgXRO65ypdrfY6V','user','ak_b3322f3dab7853c5','2023-03-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$yodGqXrmyZYQBlehp.oL9EYnIRXHWm3FuF1fBSUgoslfxV91HLm/T','user','ak_68ada0eaf98155db','2023-07-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$AEKNJb40XUe4Cuvu.ajV0PdSQvglreRh/.9NzeaPH5sYdql00Fef3','user','ak_7ad32d7e7f9815ce','2023-08-10 10:23:00',NULL);

