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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$yXkoqa4VjwKG5k7fnGcP0fbDszjdz30I2XIH1A6XIwO73k.IXmxx2','user','ak_7978808468c8a122','2023-07-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Irwj.hMutuqfPmwlkVGBFh4Vjhlfxtj0U0w4ilfgC37nmXEwuACLh','user','ak_a359a05774855e63','2023-06-23 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$7dkSataYHHprOPQH6G/Yln5nSE7BXDfOFJcqe712ZZHILKLAqRW.C','admin','ak_17e6fd2fe4460c2f','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$aEDp6rRV1oXcyBHAlDmoOUosItHw14q9CoWB4HRro.mMP0zCSce9x','admin','ak_5513f61090a2586d','2023-04-13 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$6vXWU7iRrmFhULR1jCvHAzIm5QurrODWu4uUh18QLlqr3raMnB/Ks','admin','ak_6b56a7fd79259f6a','2023-07-28 10:02: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=2455;

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


