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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$bAyr/jbgRityIlXcdj.sLBSgu2mXJ8E1Izd4CVRCWBLpLMM6Hamg2','user','ak_afb6266bdb99cdff','2023-11-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$TbBWbf8HAPwot/8rPWJED6/w38S9vvMEYgk7hZVNGsH/3FEJL69XY','user','ak_eb9ee7a9fe2a23cb','2023-05-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$QaHSxg6ntC3He8zDNzqM9WlUmhS2Z6GSdqPXehg8dAlY/hJwoXuNj','admin','ak_6deb7229dba4f73a','2023-07-17 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$TMztCDxxXKeUCP9LjR2MzwNqd75mj21GOrzkzgxkB9PW4nmZEozRm','user','ak_6f801730aa6c95b7','2023-04-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$os1P4MSRvyNwAOWi18ZKJsRkXkKe20QP84TVxIJSgzu0H1/1yC8Cr','admin','ak_5c23ab9c7e05ee3c','2023-02-06 10:00: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=39071;

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


