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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$GhwVYIy9xOe.XxF3y.fe/p5tRQ86cSggdk7ztV1FQaFARj2tzKncq','user','ak_132a9b9d88709603','2023-10-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$h54ChCJgbwv.n6gQf7RiBdi0VeXKNKTIyvUF91TT6YkRu7OTYdfaZ','user','ak_82e313a31b0859c3','2023-04-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Gvi8yd59.IRK4Ay.o3OyrTie53J2OTfgzWYvklFQuxN/jSX.hlPj2','admin','ak_49f2261b6fef5402','2023-06-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$PYGZ./N8gQltHBldH51nezcTKCFKuY/sLvnKrSA4JuysvZy1T6BFK','user','ak_4b3771684780d363','2023-04-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$3NkYv8uC7AJWmFmC5VVMF2F0Q69S.r0eI76LDmAzq97wkyPm1kXjw','user','ak_41730c74e0b1baec','2023-10-23 10:12: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=25180;

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


