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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$LtgIDUunTFqH96Ik7uyrPcE26M76NJyXj/XDm5tlBty4apOiBYJoN','user','ak_15c7eecd19c3f878','2023-06-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ReCRgQjIv2./o4c1382f.gjRDs1CC3YXcP5qV6g1i9FA0M4DBU.5A','admin','ak_ddd9af1415b9dd1c','2023-09-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Rx5WF.ZJu1keyKDfODcY4i4oVpOEaghoBKC6DOLBxUzoDdr13UNHv','user','ak_2f535da7d061afae','2023-06-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ZyPyxupPVljZR45YLdVDkInioN8HWHE/cLWKfo26ZILgXmAwI4VZ1','user','ak_7eeac5d1574931d3','2023-10-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$pLOt5yH9GIF43KdKjS9P7sutQT0T9jiCdybnwp7lNhKHeHd7/Dc5k','user','ak_de6b4664a176d22d','2023-11-07 10:14: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=18926;

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


