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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$vcmCvz/8WEqd8Re5/noHD9q9zoew9dZKzJjPonVQ.FQk3Wlnx50DD','user','ak_8df272b9355a26db','2023-08-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$idBDkYnkwHCF9J./hgxnaDsncAsXBPalEDtLZ.4kPZ7Pd52rVqE6a','user','ak_6565d211161229ab','2023-04-22 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$4MDvDXNTP3t3ompKdzVHskSuPUTtku39IQzDn6Xtob3tqNK9HiJ5a','admin','ak_0f608ec34f47f3de','2023-06-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$8HqgEDzoYDGhhe2.lokjcfaZYVdPJ.XvJVLOLMXacqUdywnnLbBXp','admin','ak_331988bcef6d00e3','2023-08-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$aI6iT0tC2CFLgH0m86CXVJ11E/G8OweJCa/6Sppz3eGFtaRJSf0fB','user','ak_24288f2ab8f3fb73','2023-03-07 10:20: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=12850;

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


