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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$pmB9tqm2D0nT9eWr/0MkDcYY2.y6b07SDV/HBGiNtbJWUzo38wjae','user','ak_5fac3255567be173','2023-04-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$wehTNrE7unOmDGn9KZBTPrdU1g95OyWsSqCjZdcWQeFVJ41ZVDn2T','user','ak_5ca40e59735cd030','2023-07-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$lmG29lxmAuUCNSowoS3Vs/YUJnty74NdCQqKgBjZrwhJQ7.KIjjo0','user','ak_17ae275e00a8d108','2023-06-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$8.aZ8trUfJ2ulzkZlzffuRj7.tAdJWTT6e6EvU9KQsBTQU9bKd8NB','user','ak_e995e7e2e63e9c1a','2023-03-08 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$0f6tXi.yhmJjExqNfv7IpJ5oFyh49bIYvigZhRcxNKc1.0oZEIsAh','user','ak_f93a437f8e56cf86','2023-12-11 10:08:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16888;

--
-- Dumping data for table `sessions`
--


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

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


