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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$hDAX7oJfU9zaEXeUx1LfSN1jrwTaw85sOPU.IfoMmC6dHuweJP.6O','user','ak_06c42ba1f10f25cd','2023-05-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$c6eATSIxN4iUID3cpkorT5eWa4Ucq4b13CLfqlLY5kKMSUiWHMDiF','admin','ak_0007b59a69bfd3f5','2023-03-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$uqOG.3IwSl3BJdYnf4p0vrDOU3gCPL8u/n68eMVzGfhFXSvzAc5fK','user','ak_1bfa9b4e91a087f0','2023-07-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$KvSzWLXSqPzzARxkjzpaMIzhWytyJto7PmC7yh5Qw5eTvYdXMtT4h','user','ak_3855b22e04a1a85f','2023-07-21 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$TekwX4FyPTtNZzkuw9Mt8tcRmaeiW6zB2GychHNFWo35Wl4avk6KI','admin','ak_c66c0ba7a1456d18','2023-10-04 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$t8fgm71lPVJueAj.pqaDZ0VM59V7r3ripWX4EhpOSa4gmIpyL6brC','admin','ak_753620711354b22d','2023-04-01 10:18: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=42438;

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


