-- Host: db-master-4.internal    Database: ecommerce


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=45000;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$88l5vralbQc5EvWYw9sEP9qtuExlaQ3nBG4URYdC2U7MGGxheh509','user','ak_de1f60f9e846af38','2023-09-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$.x8z7wm25ekRWrE9utU/97tgBY3EXaz1I.QTVneZkdK3tr1BBn6ZJ','user','ak_47c79a2629671904','2023-06-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$V61cxSLZPqhBGSMBxicGW7JEBpw6UiLyKEe.G.mUnu4p/DQ1fCwa2','user','ak_f5fdc2ef9bc4d182','2023-09-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$8bCCK5ysPqI1sEsrABEXj3DbKpxByGh2kuWjpPi/29Au34Kzx5FMA','user','ak_f7b595b1ee4e1089','2023-05-07 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$3d9ooDtTpIG7meMMRmP0NCIg1WiEjnYrCzRan68UdlIaczjQb4ND8','user','ak_d39e145398479077','2023-03-25 10:23:00',NULL);

