-- Host: db-master-0.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=1379;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$dL27jSiJMAMLOm5LwSTyqKnbTrUZD5N5QW/tdH2AtazE3REzoQJUX','admin','ak_ca1d4fde43534f65','2023-09-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$NOO8hEhOCn.xDzrYWVDzL46myWM3PL2UiyVvxygfgcqAnw1WTwMPH','user','ak_a0ecc31be43e87d6','2023-11-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$d0MgKlARpjfkfHiAN6Hfax37BgZbGGwRBAJa1y9lWvwy1/xGwZLUs','admin','ak_4c54f0f798f94f69','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$OnOUwkFzPp6zrenlV46KWoHd65So2/IOoM5KesyV5Mt4KOyub5AdY','user','ak_bea8d3377f69e572','2023-05-23 10:07:00',NULL);

