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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$oyCAOktfsqijJRPYBXbg4bG.EGFAyuEwJyQeKd0iVse73sPz7.Lyz','user','ak_cffd472902b9d8c8','2023-01-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Lhi3D3Ytser3Ipn83ACkkMkLoJxSq0Xb0ARKkKXR/FCxP7WokCBem','admin','ak_7be46ece349195fb','2023-02-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$BLpgXkaukDHNcv2Avg.M0A1JkJIATgfrLNLzgzl4Doo34PZTEeR.G','admin','ak_fe299735ee174d1a','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$EiBcaaA4yPQI34B61xFmg5dBCzJ8vzS1Co2ed0ghgpxjNtEhYO75v','admin','ak_3b82d4aa4189ed92','2023-09-12 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$BkDp0zwn3nk3.xeKHPD2fMV3/WcEb.dH/nWErKmHpiGhSghnOm0.8','user','ak_7e925f41ac794e2b','2023-04-26 10:17: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=8655;

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


