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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$DqA2O3MbJi1EkVq1FL1AwgfXw9aLMJpm5THUNMxPmW5MN8kocTDEm','admin','ak_09f071c7356a9ee5','2023-04-24 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$5R161UK7Njoe/zZbRcp4ym937lr1hXPypSuF.sj76oQgt.qaDQf.X','user','ak_bf0d0d096eb823c2','2023-03-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$wiyxfHxW3tmkEn1bYlYgHRUR3Id9/uF1shqh8DvEOpHU2G9rKFpcl','admin','ak_e11ac613c4e9abe9','2023-12-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$J6pNe3HASEQvRp8KX4qktm.4iGZoinj5HeKcfIOcWl/7AeD.bcnnr','admin','ak_a02587a68eeae436','2023-04-07 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$fQGZEkdLSmATJKOx5TloNJ0PwRZDCp6AC26EOc7VLmMNHevQaKAKn','user','ak_e63fb4490de9b526','2023-08-02 10:03: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=25226;

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

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


