-- Host: db-master-5.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=26301;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$ukwz0oGn9MFtBa.v9KOeWOW/pCiM0g5HEgX/.K2DCC1dyShZF8S35','admin','ak_9458817a072d01e3','2023-08-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$qfi72x//.s25UXI7Cl6/Xg4hvo3tqxSgAd/wbvTYx6UpjBVihHdwt','user','ak_a11cde7d5474ec40','2023-08-02 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$gerxtK5ShBNhr8QLLQ6cbibHaQpB/kBtiNc71MxdsqVgL/B36.NH6','user','ak_b9efbcffedc257ef','2023-10-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$ShoinnwbgqxelOoLtfO3grzOm43BQ9Id3FuoySxF/4gc4S5ciS/d4','user','ak_c33895d9dcd0ced6','2023-03-15 10:02:00',NULL);

