-- Host: db-master-6.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=37089;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$xwBdgt4ecuU2MEd8a2OrT8zkuH4B1CTkBQlHoHj1q36UFCQIwRthL','user','ak_529d4d293a200896','2023-01-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$LCIGk.VZ9HJzMZWDSHHZwO/knoXILuv/otIl8gXCIttIJTt1hR3UW','admin','ak_ac60513d10337e95','2023-05-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$uBkv/J4hpUY5CctGZRj/yK4CGSdfRnYJjMIsDsEFTpvtelKnAAiKf','user','ak_21d287d7578ea776','2023-07-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ZeB5NTuv5iXsrpCYxiFhHOAC.RspHtTAWlbI1rlipcTaekGqz9rNm','user','ak_5655d680effce8f5','2023-01-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$.4XO32Mgzwmd611u8kubFvHCC1yB8zlkuWIV6CzPxRPxPZmUEND0r','user','ak_7d4ad231ed5451ed','2023-03-05 10:04: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=42634;

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


