-- Host: db-master-2.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=9211;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$JyzlcnwK3XzdCYjeHHLQDQnbnHx8h2R1LsG/FJG0mjfhkDnHuRbt1','user','ak_c94703c522552a5e','2023-08-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$JxK8nYADI4QLEsdZAqsD.g/bquyW575NA6UMpljL1ZUZl3NCsIqtV','user','ak_9a68e6ee44393c1c','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$1dwAPwFaCI6uvqCNwzvV3n0t093B4.Vna6lOSGlZVcXFi6X7GY6Dn','user','ak_d0ab2aff4cfca96e','2023-02-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$8fzJfAIg.AHGbDuTNkPCWfSaC8vOmYFzN2Wbpwo8NEtnHWE0Vj2Vq','user','ak_d5d96ca61376c8d4','2023-05-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ow.lF9VR.VgJ/MbRsaeAtP0XY3QJdGy14YZ7PxmoLHPnU7lwBKSrz','admin','ak_d88137154148da8f','2023-11-25 10:07: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=44751;

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

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


