-- Host: db-master-1.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=48347;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Zns1qQPB4qzQKDm441rKVxhS.ULEPe5PFKST4EAUybrfk1zj3fSHL','user','ak_10d61ae0200490d4','2023-10-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$zgarq8ugTZLrgF3kJgjd5Zwj8VlRtLBqX7Mwm8Ij954M/cX2ob68m','user','ak_70a2af2c8e1b4f19','2023-06-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$0nVxiLnOWp2gDjIlTE3Dyvuz9LNvC8XieFlMxqLgo7p9NTqOLDZKP','admin','ak_e5545bb24c41e1ab','2023-02-16 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$m8bPtBQt1Qax9RyitWDrREfwKzVvlI5UIdXGCjZv/Vl.5LX56H8pp','admin','ak_233a12612d7da2b1','2023-11-26 10:02:00',NULL);

