-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$LEXgAz6bHTzEDD.3MIUzFwH3AdV4YBH2ZQapHYTEps.6e7bF8eatP','user','ak_fd6a5ca6f65848f5','2023-06-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pA25iBv1zKbR1znlyzo1P09viFl0oaktSiR6Ix3Fq3WFT2a13y1Ds','admin','ak_6e74fe2db2ab1aa4','2023-12-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$BY/hN4koxYMgS8oQ5uSyM0OntheKqoPO59eyhmJ2ZjsdpZD73UVDA','user','ak_0b2b9da855025810','2023-02-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$uOanZpZfVvkhS9hoANerqUY2YT2KD7BEG6/7ihmVwfgqFRmRGiYJA','user','ak_bbf0502fe3da7f27','2023-10-13 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$rc5KkmKhH9OAVmMZCRQPCK5c3cAHxFMWUmEEYYc507q9jEeCzmBIg','admin','ak_c84f20e86aee6696','2023-04-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$e4bugNKRZcy1DS8T2udQrdQpItsdCksLmbRdPuIqda6o/.p.qnOo3','user','ak_276136694e74a7fa','2023-11-25 10:09: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=34925;

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


