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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$HkITU7pOs2ZIGkQnwdWqZE/Re7uP1p4Tl2NSsV9s8bTKuSOpPKIUb','user','ak_7946dce6c54d11e1','2023-03-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$gPtpQgySEtptSHKvDRMQLQVfg7qHlSVAhPexwxfXFDX57qT5m/vAs','admin','ak_3cf20efdd2be6fcb','2023-05-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$qVAOxEENJxR0B1N3HR5aq/nudwAtdXHf/Qri3HQgpPpSS8P1KFZH2','user','ak_a81745a8900ac6cd','2023-11-10 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$1V.1TtSyrkLWJT3v988.mjp5BqxtsGvfUs1Ef/Cr5aumyn7kOrnFB','user','ak_08e120edea1e7500','2023-04-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$MrA8N0jHLfUz2g/49V6hjmDCqTRvWB8aA6Xuw4wAfSq5guVOjsRf7','user','ak_2f9c48e41939bde3','2023-02-06 10:01:00',NULL);

