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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$uK5y35MDP0.29T609GeU4Pi.AkMmwWiZWydCBoo9l6C1EQ6zNYssb','user','ak_892478793c83d64c','2023-04-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$0.ATR8hRvn31F6p1iJRJGfA0qDhEbaAJuxSe7Dhat1k35FiaJkB3D','user','ak_69ec53a2e3016de3','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$BeS1uUBX5JWsUIwclxR6efFIlVbOScrFof.88TLB8K712MG.UmsH/','user','ak_c23f5f1bc3498735','2023-12-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$wRn.SYN6jep6F2hE00zWDiFPFjyCtTQwLbGGlWZ6EKFBGtt.eNeOe','user','ak_cb53f548335a2385','2023-10-03 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$wcG6RyeJBdiT5DkH9IDtqRmMaX9eHE..KKyP7b2B8o5gEktT4C9N7','admin','ak_9d350064acb98a7e','2023-03-22 10:07: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=22115;

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


