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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$iB/I1.w6L8AD6prLN8JfhrJ3skKF6skOxCkCeuQkdcyJ0LKJKRliI','admin','ak_e4e8a15a956d2ccb','2023-11-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$IqNOAGJr0.TPLntD5uWXUUKeIAX0qc5KAiQk7Pq.bmJwsKsrbVRRf','user','ak_3e5190bb5bac7655','2023-08-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$RF.L1Heg1TbFzVPikDumRQ1VObRyEADLNlt4lBS5ptqYkFFJGzWJk','user','ak_cabb64da97e6cc8b','2023-03-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$kFDYyZO6k2ZiAOI8nb1cGL8IlsoDZluPGzLXSjkTFcZegKv1KnDxI','user','ak_87112f5be4ae8bbe','2023-12-02 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$d7p2IDPzvepu/jUlKJG1PjQqPAdkOk8FzGXZPakRWl5FaqylAzlll','admin','ak_e08bfe843c428ce9','2023-06-09 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$FfoWP.3mf/Bfag7d48.4sGxXAXTpegFlzYCAEq9bVSJuTjVMpp7eO','user','ak_020ab1da4891c22c','2023-02-22 10:23: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=30710;

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


