-- Host: db-master-2.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=41125;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$8by9N2.fugsi2GRcHUrk/vlBimeacv8xUqqv6HijOH4YwM5a3VdW1','user','ak_59a844ba3ff23301','2023-10-24 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$be.dBUEnrbeNpvxwEBzZTArCZdgllrH7wKeL.KvsXUJbYSOAPHokh','user','ak_e2a28a1b69b6970e','2023-11-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$3UrPSmseuXc.fBUuXZtNtphMh5cvTsPxmoWWcCSloPO/iRlDOgWsk','admin','ak_7f2adb78fa6090f5','2023-11-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$.hmooHHA.9U4Lf0kEq2w/mSX6wfu0NTdTihGovfzXZCTBYSaYw0H7','user','ak_66775fe8d97a8bc6','2023-08-06 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$ZiAdd9IF8T2vjim7YG9A6wqoQYwgXtR3GOGNi7U2ahttWHpCZ9klq','user','ak_da4d71a532c32a6a','2023-11-24 10:01: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=24364;

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


