-- Host: db-master-2.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=39007;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$vTixcpUJkWcl2JpBV68Te86CTXXFKLL6LEjMB4/5hwiGfJeDDpsYW','user','ak_0177b8e9ad660678','2023-06-20 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$4X0pNv8F9y7vll4jUoEJMKYFfFjKB5fa0O9OAXwiCKof9qiTCZdsD','user','ak_cd0f3f4341767070','2023-11-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$tleNLqxIFO57ujq2ilahhi70bUUhj/oVZXV11IkP6aiHPDZiQY/.v','admin','ak_5f149391926e50a7','2023-11-22 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$RDnn13Ef0nIEL7PpcsTdXR7jW7AS.AjIKgzUEtdxGT7ObFGBQJgFP','user','ak_f56571fdd5ae0be2','2023-11-04 10:19: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=40545;

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


