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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$3Fpr1PBnK9Q.xBlydg/yc9kKaXF4loH8j3TzT8BfXMya84EQYc0hM','user','ak_82cde4f1e3204283','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$k6n/jD5kczOGrhmrGkm861HDk2KJT/yf4S5AcW0a2ubxCKelU5eD9','user','ak_d76dd51b787b9ff3','2023-06-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xh2Cidt7EQGJ3UuFYqus/EXRSMPtj8mdQHyH0MLbV3yeIxNl/Y17z','user','ak_7c8fd59c4f27a99f','2023-12-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$iVYdj8EUJpsLCFlYOU6Z.KaTBra2roxfVNPwXSNTb08ae1ZzZZQd1','user','ak_42a1420638c4de3d','2023-04-25 10:04:00',NULL);

