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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$RF/uJ49m0Vwz.JMRLg7BJmyV3OpaGL3ACgefzg6WJWJpCFmAcavRU','user','ak_56f00c46de64ed49','2023-06-09 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$gA/5F.TgtpeUPaweLWbivVQCYQ1Qomw3hplcF7iiL2Y1x/qo9JXg7','admin','ak_c59ec3b875248fba','2023-12-09 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$5BlBWp51wPWS36m8YYDq6UpiHzbQqU0AJAqS5vzSb3GSexIjQei3I','user','ak_9254ee8fff95c38b','2023-06-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$UHZqgj5hVMucVDnupJzEGdyZ8istnn9RFXUWH25U5tgjJlELFp1SZ','admin','ak_279e4fd7509531a4','2023-03-05 10:00:00',NULL);

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

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


