-- Host: db-master-6.internal    Database: webapp_db


--
-- 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=22805;

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


--
-- 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=49876;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ZryJKPKr4d2nUySRB6EcpoB3pHLmIhvQLUkzilWZGs6tRRpKAk15V','user','ak_e47b465460103f08','2023-01-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$V4MdnPYSXbuLRRAlk2bWQOIAU7oti4GpWwwcrbW87wDfHbMdZxVph','user','ak_29b177c9298124f4','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$LxG8DTEex6sOEBppZtzIVdaYTCHW6rK/bRMu.v18lcsROL2i73Wkm','admin','ak_bb58fd9a72f6edaa','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$8bAOHEsN5vDnCDUOMm.5ep8qjWLd7JW42rCA.Y7xlIzuMAZMcSmqp','user','ak_a90618f925771bb7','2023-08-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$uztBdJseL4j9cM9jPg5FF0dtOuZzgqZPJSeIhkRkV5DXg3GVGikwD','user','ak_258c4b7eaf442d66','2023-10-12 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$qDnpU.FpoBAPWh2L5w8RUycz0opgfY/mOcbDki5h5OP6vhfU53S0/','user','ak_c1dd9caef74879c0','2023-02-19 10:17:00',NULL);

