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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$FB6OIzT7XsBLzl3SzK9POu6MgJE6DQiB7JXVmDVINcvx289ozSdHE','user','ak_240a8e53b3577720','2023-08-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$KymIeLJGt/sm8Zu1zqi/ZZ.tIWzLvqmniRl8MVbzfq9DoInzu2xeZ','user','ak_f15767abde7dfbbb','2023-02-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$rcWhuk2626CbeXQmw3sgnVb.eBpg/yxOCeRCNHouB52lMpZwEhZfc','user','ak_157d8266b3736009','2023-12-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$aJ5wiqaRCLdxHSWxRCQ6OEMBo8xLfMw0/zj26kQ.YaqkK1Se4H8QK','user','ak_6ec01fcf8a029439','2023-10-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$bFKDfzUdDYAjR2g8QpUNNYsU/comRJPguMEV2waA5AHjgz.L4wyvd','user','ak_90c233d7ecaa24b4','2023-07-11 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$9QmuLlw54AMjIQQ2cwSHNHcEjDcGiAw9Yc1cHZ4WiR8pPPht0vZFl','user','ak_1897d571c1f2d054','2023-08-08 10:07: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=5557;

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


