-- Host: db-master-9.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=34728;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$smm8SFUL0Zo4zyV.pOEQs1g9W/E6rmDlDSr9aTjRnBQ66uA6Ca5m3','user','ak_a83813f0730d06ad','2023-10-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$wLkADi.4eBszkq1m4LZSJz91SHex2aH1xWJ8dMOFa3fhRTmjQa63z','user','ak_5c82b0e147f34459','2023-04-20 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$exkrOs9jsNz8J1QjWyuX.sW6rYyp0nq6dODRlZB1zZKX08yqXfYiQ','user','ak_f7cc6310f91a3a02','2023-09-26 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Bua/pBzBfUuHuThP3okg1MlpqQMZ.tZFGTp2aSAtf.Y2x1O00N0yr','admin','ak_c2b3f9b31c6b5edf','2023-10-22 10:01:00',NULL);

