-- Host: db-master-2.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=15909;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ca0RDV41JpF1IeuGs5Vs9PRBLBRKEeIeeRT0rJoXO1u83ETIEcN4N','admin','ak_ae7455fb52527dea','2023-01-22 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$clvBKwdArVb4OUXy2tJcx2kTLxizlqNEhvrPl/YH10VoRxjK7nvS1','user','ak_0f46fbc9347e64ec','2023-12-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$roXrrutPIp9abNIW0jCDz/k5e.8ofIKjPMO3lwtnCn96qs.ONcmFg','user','ak_196f69addf2b2f41','2023-09-19 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Rx1l8hiiX0t.7S/AyWS1mI56Auaj7XQ3vzwLHKqIpIe/HydPMgGB7','user','ak_a6db092a6096876b','2023-12-08 10:09: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=36070;

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


