-- Host: db-master-1.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=9069;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=36804;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$VIEvBhwPZUHJf2yq13/A06AvDj6QCHUAspuW7Ju9mVjGG0eHu4YwK','user','ak_8b23482e0542111d','2023-08-17 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$NvgUssNu8HMbST/hSYckSb/FDtqam/smwEk/Z6XtnQLgKS6jiHSMR','admin','ak_17df366071bad3f2','2023-05-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$QCz0KPpdzhIjTYqZ6M8IsUQwHlRETfqOXZydhHUymeusuUbvdJxgx','admin','ak_83f4718084ee4d7d','2023-02-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$fS/1WtpYS0d4jfbqxZW3kl0nyT2Kvz3SoqMISak/9sYxW7n.AEiXK','admin','ak_25b0235ef346d170','2023-02-19 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$U2Su5cfSztASQM/m4WepGf3UwuGkLfa90jFqcVDKYuti0brqNbAzF','admin','ak_72160f34d30ed0a1','2023-02-06 10:16:00',NULL);

