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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$bBO9rZE4pPIMcCbtmAX.B17XoItJhF7TscPL4U6Mlf7hynpLH7/L7','user','ak_cba2ef86ffb0a6d4','2023-06-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$ScdzT3HpNSdr4W80XYeW657Gki8j/7Ho8GmiLrkPMZrdGnaETBRV.','user','ak_242db8d5f085db76','2023-08-09 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$x9Gpe80dYROXrG1lTIIb7gJFh8LntI.iVMbwDSD.qNuABeYLLiFbJ','user','ak_9174fb8c91b6f1db','2023-08-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$PE9ifc5RZrk1nr9F9tMRKb8YSDZQlZUn1nkHF0cjy8iJseV0orA.h','user','ak_738aa1f20323641f','2023-08-09 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$ToBibS5i6oxy3QqP5DhLbtErFYQC4LdPIiUg3uuEw7HUTumM25ExP','user','ak_369a64e0d0e5b448','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$Ru5fTM9SYvsMhmhEk2WM8XLea34BcTdDc4LBYJyNa5CCSOYzp0EB/','admin','ak_3ec05e6b92589295','2023-01-01 10:14: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=18975;

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


