-- Host: db-master-0.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=17341;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$h8npeH.BGAQyX8avae4HTE1j8ARPa51kbzfxE1z.Ag/2utYHb5hp.','user','ak_20c5bab347f6e648','2023-05-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Jk0yYkWbrJW9xqQRszbca4XdhMaaJVL3Zzbnjl1myEmcMlA9Kr7JT','user','ak_250508d2850160f0','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$C639FTQayiFD4UcSXFqbPoD7Efdth5Xn9tkQFX9U1VMACR2dfwjc5','user','ak_45b6aa5f566dfdf4','2023-04-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$eL3eCfD9i7v9yEjtkDzBZ9HlnRXsCV9Q6Si3OOz/.hGV3iztEKqaq','user','ak_d37705f58a56a0a7','2023-03-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$V1QYFvKSIxR4bK.9ssiEbisrG652KLG0QBEeascXbeqQYNXGBn8PG','user','ak_a08ce808488ba526','2023-07-07 10:20: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=5251;

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


