-- Host: db-master-6.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=10186;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$uEmg7QZpfzyA00ZMhekjOhQqMftorwL5o9GXPuaprOuqI1SD/HdhJ','user','ak_f9e7dab82ad0f065','2023-10-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$l.mWS60yQjaOklM7V2CeKiVhgIYi8DAdXjZx1R1Yhf7.EnTMg6jtJ','user','ak_8e874dd2a1529d28','2023-09-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$cdqG4VKuJMaASkie3ek.Dpz4Sh/caz71oIBDVQbfVfPkDiGOTFo4N','admin','ak_c895db862bf1b491','2023-03-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$Txp0.WJQN9yPVBEUv8K18OBCoHk2Gy5Zsa5vjoY5rjLd8R5rlgzou','user','ak_65fd6da0832b95ce','2023-12-05 10:12:00',NULL);

