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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$AfoanK.k.vlAZYRUkhuRFSYc8dKSEirzWBf7AmxIhLKg.n8t.SbSi','user','ak_9637ca16352ecf8d','2023-09-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Izg4d.2uE3w/fNuuOV.pNb6tW0rNdrXrWgb7cMfZg7.JY5boFWxz9','user','ak_de427e85b6aed687','2023-02-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Z/v77pt79bJ4FwytTXh4Lv8xePiitUvc39ZMThWcpE6H6JN9LlDJa','user','ak_2fe83a2011a26f40','2023-08-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$o4Tv3GDrdGcYM.o92yva22xFRpiWg7ghC2NBL/1uKYkxk/YgPUo08','user','ak_8c4b379467beee9c','2023-10-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$rBwpuaQ.AOlglTeJroQA0yTKJBGHX0iWpNZt.zXkCyGbDJIBijmPa','admin','ak_cc0b9444f36db41f','2023-03-08 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$PiLBcHwLjdKe9b47aZFiejgriMKmEd3Nk1zCuXlQFz27iGIqM8muC','user','ak_72e100cbfddf229c','2023-03-23 10:07: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=24434;

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


