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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$XaLY4oEWZ/o725SiNO5JfJPgTNjDYLgC1JiE.t3JA88devPjO9I8Y','user','ak_befeaa0b72569ab4','2023-07-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$DWhOaMwsXxxNR7ga1jXCrxZyPRd8fpuO7n/lGAPtC/Mus3VoCCxrp','admin','ak_a6bafbc618f6db55','2023-08-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$AUMIT1tI7gtdKab7Rv04H2XFOkF/J8bwGqseLUsRD/VDYLqu9fd6D','user','ak_6cffcf112357beb2','2023-02-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$xsqAmDYggp9wWg1bYXPoo2XSSaxsfcJE0vHGRLR3zgRLwHg9KFJGh','user','ak_bba1b0b5b3d011f6','2023-09-09 10:09:00',NULL);

