-- Host: db-master-2.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=14032;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$uTDlnbiZTl3L55r.tTdgdo/RIf4F.QHEortslu/n003wkikIQG1g5','admin','ak_1a9a57ced5273bd3','2023-09-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$mFiX4.539Iif8GQia/Sl1Da/SOIyFEHDPf4z4YfxsywEtfi/SyKpO','user','ak_faf8863df044c0a7','2023-01-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$cpGzMNBh/F1NGWpaScr.geVpllm9JOwgh0/Hx5A2PFZ8Hk8cn1obx','user','ak_fc3a2a553477981f','2023-07-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$2u5XDXp92IqKdqyc1TdsFZBhn2F1dTqC8XVDLCOx8t4mNfG2uPeMW','user','ak_ec494847081156d2','2023-03-04 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$BHPnF.0YX6z3yC5d/f0ox3CB.8.Mjf2iuV29vm4q.9qCjgGSdS.hS','user','ak_4f92382c47afd6c0','2023-02-14 10:06:00',NULL);

