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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$OETHUie2rtEAXNowEk2l4QKZBNZTQmFDYAcNt1CXKNl6ug22n5qvj','user','ak_dfe58e87c144af89','2023-04-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$jvka0OdK9N68v2CNCSsdlvMPd1Bn72pBH7gV1R06Y3YGwV.JiGW0h','admin','ak_07a05d328cefbdb9','2023-11-15 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$16Sn3Q5F7yVjXugLh9bQAZwriBSV2XMJfQsLK9N9U.TjnxRidGPgs','user','ak_6fe16e93c49f754a','2023-11-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$z9mBRGf7KuBzWHPh5hSE7BnWyPBw1gvtEO134vPx.H0Dp5dpl5cHC','admin','ak_fbb5d33f60a7140d','2023-06-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Uz1PCKIDZfDrYi2wTYIn0rthPBLrFF6UuJ6YW5e/vKL0wGABCvzdW','user','ak_83a8e82eb42f2180','2023-09-16 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$hqHesMXbvBtaencOgWrCfPBIHC2fIyognV8LR6m0nr3D3z41cpgmP','user','ak_3277232bf9772cfe','2023-04-21 10:08:00',NULL);

