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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$S4VWIBrJAQxM8uxDZeL4cwl9HXFe8u3W7BI5JWd4IXggR9Ai8g43K','user','ak_5838ffef43044a35','2023-09-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$K03xsfxaZ8UpEEe5yyVBnh8iUUBihGqGce8sxCI2SyWPh3S.wQz7q','user','ak_6d5c70bfe8a799ad','2023-01-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ho1c3vBCKNqcUCCuhr1zRJ0N.6PL04rqY5PLSwFIz2LNZ8medKIkh','admin','ak_64b67c758e0c84c0','2023-10-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$ACtvqWgqJyzPhoFJje6tZ70RVPZvLbLfWh50WpkIvfutJpQa6dAVR','user','ak_86d7f98522d817fc','2023-09-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$QOBjLb9zTtnirkZ.G5kg3e48NCvXPjDPku2BIZDJiBZIs52l1QbtA','user','ak_25ef74e3fe7d63c1','2023-01-06 10:13: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=41114;

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


