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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$thm1BDOXa.fuyAysDAsP1c0wlHU1Nf3qoqSnkFMshfccEjr99.Dyt','user','ak_d5c7ea9d583d7eaf','2023-06-01 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$MNshaD5yfzbMp7KHazd6Sm8mjfAYnYfTLAje1YeyDLnOej5xd/Ukj','user','ak_db9e773adb2d23e1','2023-12-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$i26W6Qib89Cfd6RnhtkDOQq1v6Ldg34Mqg4/hlHSPKJdzCLOTECoP','admin','ak_400111882d306da5','2023-07-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$4pWesEp5uL0ZoX1UDo9q695wCPtup06VU17yVWFTck/X20i4Rwovv','user','ak_93db4d0ac670236a','2023-03-18 10:14:00',NULL);

