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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Ymqhr8yjX29dJwD0y4URCh7ajds76k05inEh3a5AyAlQE1XnYsISa','user','ak_2b758e87f58c24f0','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$OYz0O/2jhSKztcm0K/fFarPKUizqbyJ3RMSL5/Ga/yDsARJx/a3zn','admin','ak_85a06e94d222e3e3','2023-08-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$rKP/4tVDt1QTe.WHw/fuqeQfDG2dyUW.Ne3am8ORVpTmalTWuMJBv','admin','ak_aa2a3d5cc21a465d','2023-09-12 10:00: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=17703;

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


