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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$W.kWdRty6B7U77QN7zR07rhA0eIDXLsXNEj.SSt3VxCokOf.H7plt','user','ak_88a26fe82dcbd27e','2023-01-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$4kj25rXacpNCayqFm3W0ffzX/gl6wHgnb/xMLqjtyFLRgRFsHNy0K','user','ak_34cee5dc7a2d2d9c','2023-03-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$eVUOdrD31foYlJJKGkYmrZ0FGAMEpoHicRvOemSc2TbEAN9GUxrL2','user','ak_88c69ddbf4b33f4a','2023-08-10 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$k3vCdstE6GLdNzyZGa1JfOmlZ1hzIoUlqM92eBrr6pfz8L0Er5H9M','user','ak_4ff5ae2880f39f1b','2023-04-03 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$WizcLPIUfEt1FlG9UZDw21pZmMOfzeHD0ak5ZY7rkta61ko1CrZTK','user','ak_ddf9f5e62ec931b9','2023-11-23 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$FkaTPtgEknEk9Giwq6/QEEufG0dCQBPhQEG.5So35VixJnSSHaSeX','user','ak_4821a1144a583bad','2023-09-13 10:11: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=21244;

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


