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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$BtCc324ZcDdHrSo6CSlaebIGBlZcsQ2lyEqz0MCwI4AFz3gH6hUDO','user','ak_038a87171979ef4a','2023-07-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$.P.S4GFXL0SjjJU67VrOGlVKvr4wdI0P3XC1xWUiUkGmMWcUH7BzW','user','ak_bc80cf266604d97f','2023-02-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$JdvDKJugCUeU5EAhOxIIDRzWvCLcUrGeK7z5I.p9Sxswv0FuwYTub','user','ak_08d5262c361ef8b4','2023-02-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$XIpjenMvo/JfyxrIUS7gfNxA4LL8MUu/RDdC4QdbG4An7MfHllv6K','admin','ak_b5c85f987cb8e6ae','2023-12-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Db/8z74Xkj7yGipCq7la.nCmgLhQ4D7htLNTfRlTHcqnGBt8FjgsI','user','ak_eac139b8f656828f','2023-06-07 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$916mY28M8QsrR5MQ1ONV7mn3Z4zzzSCIpcKtP.Of8aZmawCT0/95R','admin','ak_9111bad050f52356','2023-08-17 10:13: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=49170;

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


