-- Host: db-master-5.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=33219;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$JzKhQzdUn0GrNN6OleX1sMQB1x0Qm.PIRLOIrsyG9//fejFoFPBGL','user','ak_6ca5a1885effbe21','2023-05-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$pRpjYBOXhw7DuWbmliP/JkKcQ6Uy2sAdEWC9gVggLkFQOK3ABsRdZ','admin','ak_8d8d1ecad2608477','2023-01-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$J2dsFy.iNAkumWNASTOg7JaM3oW/DlD9neqxhnyTylX6ZcGhFxlUB','user','ak_01a45d637e139710','2023-12-23 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=32875;

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


