-- Host: db-master-1.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$zFYLF0e.kyM4sgKiYc78fwhH0qWDAGzxk8PZWE.GRcFdCaTcAefxr','admin','ak_f554908d82e2e64b','2023-12-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$wcYm.sG9vHLUtfA87BpKqFgf2G71A27DSqUfKgHsGxF/9EueNdpUr','user','ak_55bf6e24094faa66','2023-09-02 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$VI89/PJQfzbIROdcX1Q0c1H0aN6G/xsswdBr56MJee7.POHWocZIZ','admin','ak_fa8f57adafbe9f25','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$mu2TNVEhiznT1CsZszpGBM6/I/uovJ0iW2cKp1sHgSSJ3vnhH67nC','user','ak_b5f49b751cffbd14','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$WnkOwaQ2WpywGgTNp0qkQzgMgHjAYPPLZFxZkzjXYzUB2CN5MtyUj','user','ak_fddfe2a67e1a063a','2023-01-01 10:12:00',NULL);

