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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ykyvvMi0dN5ZYIqJ5bDQ.uTsA5sqLQbrSes5BsGF0nGy5iE2dta/q','user','ak_2ea07f244bb7aba9','2023-05-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$HrcvfkDJRHkp225l7dM0B6CjheBMIpYi/KV5Z8ELpztSSU2bP6qaS','user','ak_6484ddb3662bf830','2023-07-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$YOORd3MSoxA6KB9.VP6LN.XyZcdL/d5rM2hWDmuoUS2h1/YRjTTIu','user','ak_cb86edcb422914d2','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$KmQbDijQl731lmCl9mN/jX45xCguZLdzTkPSZ1ghZlHCPWxkMQ8VR','user','ak_5caba60335d52675','2023-02-15 10:21: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=24651;

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


