-- Host: db-master-9.internal    Database: production_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=17497;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$KPPml8O9RTxlwEwA8vovRy0o5QHyRyUJLdgW7mNOwXAJn4Z5BRftQ','user','ak_9a3681f942dbfad3','2023-07-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$6grliznAAM1GaRqFukR3WOpkUt1eL7G6zDRuMf5tpsh2/BV7RK6jn','user','ak_b0b37e0e01a77e56','2023-02-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$nQPCHyoJY6rtxKbGautG6E9PRsXa3it4ukiZcDJt/ZV5zkytPRSdH','user','ak_9cdcbccde1d5daca','2023-01-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$u5pgkxOgt00AWQquUMfkM0YASlT.6cIiFjZTIVQJW4ktu2L6yKSvP','admin','ak_8258b0ea0cd3dd21','2023-05-16 10:04: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=2459;

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


