-- Host: db-master-3.internal    Database: ecommerce


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$9oQfrU5bnApT6IJ98LVkPAriawRHH2GE8jWZFBXNrS0q8ncmbHvpA','user','ak_51e5b91197ce03f1','2023-06-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$yuNZKmEouZWuuzl.H7TWk5QknlFG8A9J9RbzvEp5Oipz3dvKhwkiQ','user','ak_b3760f6170fa3c07','2023-08-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Lz7gHyx/ipF.KRD59nWP7afBJZ4.sjVqh0kd2Mr7ZURRCHZyhYQ7y','user','ak_0fec0f44511407f1','2023-07-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$wsQg7ZtrtMep/RIb7170d.h6ASQAN14W6cMFOrZeG7cZVAgGyE5rf','user','ak_2b6f2fb5d2f8e009','2023-01-17 10:23:00',NULL);

