-- Host: db-master-8.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ex3Icj1VPyjxaZ/aEya4kNExTDSJomBGfko3FceCBG3D2epKcSHxW','user','ak_aefcbe2185bb94e8','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$sUKbfwHktctvIlwJ/sReV3b88BEKWZGGXjkeNOS.JpMhlFC8k7NU/','user','ak_1c2a4eaed68207fe','2023-03-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$CaNL1rbqshGni6FLLu2UuHN.4WKteilparFVVYENtJEKvkp6cVYFb','user','ak_98f33c31b6574504','2023-06-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$CXhQwHzh/YhaiGMHPHGNVB4uGq2yCQQTVFxTINEe6Y2cG85fSVDMS','admin','ak_30753d9408331064','2023-05-10 10:01:00',NULL);

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

--
-- Dumping data for table `sessions`
--


