-- Host: db-master-8.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=36606;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$SoodVALn0FRSKf6xBWihwidjbQg3Rv0LO8IdAwKhobhGmS2DruZ7G','user','ak_03a8fa6d8f332f3f','2023-02-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$0QLh9tpkr6g.2m.pVEsvmMQXMJeE5Bf18mBWzZqOJR.6cYWbnYqxc','user','ak_a8b654b345a3da7c','2023-07-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Q3VY0j7uNDVEbSAY5B7fl1vp2l1DTS0snfhmCKl6JcoceGoAXlZQv','user','ak_bcb02a09d93a2e2e','2023-03-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$MZevqwxrJ9O3hXMmBA9fxdqRGW/2uRtP1zDdxqrcMhwwpdPbB/4t3','user','ak_b09a14175920c987','2023-05-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ZnHkqqtj4NC/0Btw5qbc51g3wykUHpS2Qo07FZgk2ljE0vFoVSJDL','user','ak_990107c2e89b2f03','2023-09-18 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$x2hEDGreW2TBjz7EAeAyB2GzFBswCVV6q6FlCub/zO0Ip5c90KQ0z','admin','ak_5fbe83cc0e1f0bd5','2023-03-19 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$jdO/XWuYq3EO.j0RdC5KgPy.sXyRfQGq3FODOK1VDXkH1XPp87OQH','admin','ak_828b59c4c4fe54b8','2023-06-01 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=1372;

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


