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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$XGOFS.CENxA2j6/7VwOrpRI.ILEVzxxLhgRxL6Kcmp51ZCkJ.U8Po','user','ak_1030840187b6da16','2023-07-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$M/3Xox9l5oSlPKA5slUCV8AJPTVO.5zt.r3TjvQKAl/C.fL85fxoP','user','ak_342bfa48cbc576cd','2023-09-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$hWnc5M1Tx6Hsn0ibU8fFuIHKYPaGR/yQ2XS8HMvGaXBNINbutIOuH','admin','ak_7902b8c7d821bb4a','2023-08-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$rym7eb0T2lxBEcwL3Dy9nW8LKkSVMacjQZHSSgzCSqJPpa7pEJ6YR','admin','ak_d0d8d6d750089756','2023-02-17 10:13:00',NULL);

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

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


