-- Host: db-master-5.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=27511;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$E6RYd8QkymyEL2ShD9TGeAzPncYHXm.IoMnvR4lHQ1vsnreHdMCsk','user','ak_bee82d8954f344a5','2023-01-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$z/odIWjQtWoDaXbRboTsrGGdJbiQQuvcgCXqTRKjVIR4hlgSz26sL','user','ak_e4e15b06c44d68ab','2023-08-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Qn7k3wUm3npGYeaGrzms3XATFUVvEnFLL9UmrdQPxcZ7sfmkGo6ra','user','ak_a36e3c7337a6d068','2023-12-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$r/RrCgORK9uUeZWdsLQ83eFcuSKH.SCa.fOgdX9Wsy/Oq8pyXg6m.','admin','ak_df5391289b02c80b','2023-02-28 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$iLD9aJvw3ePF.MgbsOX7ifmpoUf.BVgGe37c2/4RRjh55XYtoozkC','user','ak_f36687b9f434d11b','2023-09-08 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$F4OPZOaiPAPvh6rIlSiKyNsSywnZsaQEfFSqqJK54FuexAQ9zaYp5','admin','ak_4c5f10ef901bb18b','2023-04-01 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=31283;

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


