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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$4pauEETwIBPLowtgS6qUJXoqV97GatFXNIiuyC4SZmt5Dq54GsMNs','user','ak_dbb7bd7c17e678ed','2023-08-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$7qjeRdDCGgEG0db3ulJijhADIg94/DYZ6cebtzlDlRKCp5rVr583x','admin','ak_c0a00766188a4ba0','2023-10-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$fx.CMSXs0hGxte9u7iD0DECLS5s5cdg4euAMMK0cUEs9TVhIG5yT3','admin','ak_1d1faca9444fa26d','2023-11-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$W3h71Mjw69cKi6xii//80ztFgC8VPCSs8HbxYZw2TYgXwDAVOm.jG','admin','ak_d6e81ab965cf7a73','2023-04-17 10:19:00',NULL);

