-- Host: db-master-6.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=19234;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ZuuAo1NeQ9OxtiLEQBUih82IBSkfHGEr2m1opiT9UmELDOrVdemfw','user','ak_01f376e815a93e30','2023-06-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$.skSAaAA3NrTqWK87aTjSuuO8PAAIevhRL4UZTdRkqgOeEUzI/SE.','user','ak_374e81694767a0c0','2023-03-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$2o/zCybFKU/TMj1bJgz3IgO8Y1KGzAe0z7fiymHkbMuZ5f8DEnqqC','user','ak_14de1b8b9439428b','2023-03-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$vVWfggAJCNGxgn0LgEWvrGkLFXH1PW12GXMoK5cCsJZC9aGn3bhIE','user','ak_98d2c47b7934de74','2023-10-08 10:08:00',NULL);

