-- Host: db-master-0.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=22418;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$z5kdDHe/uyc.xQMHkUsou806C8kfSBYGFjmcyF9uEwdqJbl464PHH','admin','ak_408c836cc30538bf','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$.p2PHKE7NRjmY/cQpbrCr5GToAEbZaTXggE0oos0qM6QzsDTSN6pO','user','ak_d1cf0af9a8f26ca0','2023-10-14 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$zv92/so.9u6t2n2AcazmQ/dAIE3xN9chJOWMoa8qMlYPB5QUKc4si','user','ak_e95f750d1c807b88','2023-12-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Evzu6b4M8UqktpFQZodv4DN857i3.vsSEFMfvqWEqUtHHa7MRDeUg','user','ak_fd1834e10b09596f','2023-04-20 10:01: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=14511;

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


