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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$f8mI4xQ0wg7dOrwYXt6bJ0h.J8AZwrAkazQCKZoFEil0JlgAAXAv8','user','ak_baacb9d5ce3f1624','2023-07-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$2Ix/y53uVLKXrKouuNW09J4mfTLVxLjFJ7.D/42aBJvZ07cugw8oG','admin','ak_4b0fac0c1204a8f7','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$eGtBu0UUz4b2tPPOJ.LFTbtpsRihhDEKEM6A.r5ydGe1Z9CBmWs.5','admin','ak_6165cda648bab7b4','2023-04-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$tVrMdaN9t1WwxEDAMYitqn46YIgcTxTg5UCj5lEOIoAvWQxrWb4Mt','admin','ak_2438e8e7447d2fb6','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Yvtj8WkK5J5Teb8YoMA5aM6AEEb8KOoL8ctccybUFfyzsmjm6gzQD','admin','ak_5751c7e359bad017','2023-11-11 10:10:00',NULL);

