-- Host: db-master-8.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=33945;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Il6m99JLXVBv969ECwx.oH5Yc8ENzM85SN7HWU.FtZmOHau0EEgMT','user','ak_70eae56facc6de33','2023-03-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$xlvk273ohgyuPfCKwwmWLN//UtDyXaakdG5FZnlzbmLG71gLPGQCj','user','ak_6b881f658672540a','2023-10-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$IbQu4dqNfEQ.rj5OZdNPXnYD9Xh2ZZJ902yIZNDmqfHu5ZLy4Ak49','user','ak_6a2a196624a2b366','2023-12-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$YOb08kUpDFWGhgWxFv9ibcITIHqSLEPF7ozNekpajl4i0jedM5zl.','user','ak_287462cfcd508612','2023-12-03 10:13:00',NULL);

