-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$PedDCtlaxRiow1ryjb/lGFuriWbjjJ7gAcxrWRIEuKAZ3B/7blkRK','user','ak_bd789195cc1cee2d','2023-01-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Gx22AOv..ovJ4nhJ4DRsNV0i9Yzo9O8E5c2pPwSATs0yjTECcBcDZ','admin','ak_b7e90ecec6377911','2023-05-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$fTw.qf6lA4NKjsTagcv85d2tPAmmapPkVmcZhHWXaHWsIUpw/mDTx','admin','ak_69e392b920997bc5','2023-07-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$pilJPiyzwprc4ZNgiF7pFfhfaG4N2f2fVPezwUL.idBclgfogS0nD','user','ak_e3a91933f8df1a77','2023-04-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$GgktgGFZADu02Q6GCxSjry57o7i3sF7C8.Fb.P3k/ptYEvR5G8KlG','user','ak_17d2b16f011bbbe8','2023-01-28 10:19:00',NULL);

