-- Host: db-master-0.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=13993;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$h8qh4X92zBZQr0iOErbzqWzxblILgp/JEZdxuTcKxWqAPsB0/M61b','user','ak_e9920cdbe7f95cec','2023-07-20 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$e4GMpoJwFbQ4sgrKEV13nvEAFScwijc3229blEG3Ts87E4nqIxsKY','user','ak_713a3d48f260d12d','2023-03-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$2r5Pq.AJYRO51DZ54v6O/5XtT5wUF8RZOPwcF058U26f6tbz6TLX5','user','ak_28a29833cb6468cb','2023-08-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Dzlr2vhPWJpsi6ph7uYCKR1Wic8DKDVDicfXRM8Mwv86.JuWm95Y7','user','ak_b8ee8ef66ea5c441','2023-02-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$jhza4BAy4mCHBkfcVcDBmDDJqU3.Zq0ftUyW3ytCtxbOkLeJvu0HK','user','ak_e671604bdd9e6e04','2023-04-16 10:02:00',NULL);

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

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


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

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


