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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$g3kVSAlzS3pmOrVO/VXSPyEFIGXiW2aMt.2p0ypK9//uEQl5h53Mf','user','ak_dd20c983537f7743','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$MAr0re3IBauJpb.XkJZ7.kYU1/bwFn/5oNk1RdQdSjOEgfyHPjTYT','admin','ak_7cd871672615a165','2023-08-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Kc.xZ7KO.2AS4ExPV2x.f5lHuhb4xDe0zsQ/ZTjUAmnePCJllLTcn','admin','ak_5f40a9014526f7b2','2023-03-22 10:16: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=1069;

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


