-- Host: db-master-1.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=45803;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$RskZ4rbwLJLGRmPLpCqDP433OcBjOZGqYCM4csFsqBE/RNH.8SS7r','user','ak_c32b0e38db025c6f','2023-11-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$x5CX6X0X4dn.wI9gQTO7.xXIcnwmLI3b6VRI3anCogF5/XzIq6Ui1','user','ak_b27d8bc9abdb5ecf','2023-11-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$BDNtY/MtBDBQ850XXx.tzsSBOH6oKalDEO4QOoDQXTq30feuiFTR5','admin','ak_98d22ef53625a336','2023-03-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$bHupqhufjrDbXbK9GrHTsH86wu1IB6wCUKMhhmmw6RiVmTchB4yPc','user','ak_bcad86a0bdaf4cd0','2023-09-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0vNYv8igBdFTzHkUDOAvLe/cG8TZY3RvhJIDEFQAzzmfOpNrxumvm','admin','ak_381e5f62464ee348','2023-02-11 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$cOlXQnOvr7cNWeICazHV99X4LXmmc7MDNkywAoN6p8SuTkXrzC/lw','user','ak_64f9500b16ad3c0c','2023-02-25 10:07: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=33829;

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


