-- Host: db-master-4.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=1850;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$uKvnTXrM8AcifaN81vNXKLUNIs9zOSkJVBwGijv2hOqpszWoN24eJ','user','ak_3f0a0bc60660725c','2023-08-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$mjkf/oJudu1LZ6GEYXJokwyy2hR4/4WvkTGqcfuHqFWL3r0DuIiVk','admin','ak_3af2661037fd40fa','2023-05-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$pBb9clRq6lNvxkQMg8tmj2Sl5FT4zT/Ya9yLod9L6G5zcwc4duLb/','user','ak_e2a821256372ed1c','2023-07-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$S9L73tdtJCe3ySF4yfbOed9XTbD4NvzB6/wGYqmtNCNvoNKaTp5S.','user','ak_ad372fe255cd8712','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$gL7oSf4uY2xNCPzlWsBxSFsM/zgFRGth/nbykl5oUuHFbrNmWxzpW','admin','ak_967c3b352ada533e','2023-11-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$N7h3NrQ6OJ1yDnFfWVbzJxepSQxu9sy6P/58rIG8GnYsi99drSMGg','admin','ak_034e8c1f8ed2a6fb','2023-06-10 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$4SxnQWCZTS48QFOL7nKLX4CgzJdjf97JbDjOqvrL9fE/w7xkVvCyA','user','ak_b8fa10535dc08af0','2023-05-19 10:14: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=35296;

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


