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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$CROqaoIvt9kVKfyXsSlC3aBWGPNSTgdrVivcg7i8hZo26RvzOeppP','user','ak_38327c416e2e74d2','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$pYhSQug1VCFXXi3b8Bo7LDwr6SKLWkXP/Ot8fH3glnEol7FX4VZwY','user','ak_08018e0076f13f1f','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$qZS/lh5oXvc/ByZsN3jTmSZu43R8tEbgzbI518U7Hb/FG6I.JQl2Z','user','ak_1e6e5391b3d4d64c','2023-07-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$J2L5DB6aRmwEL52JstpElF0/q6Md1cxkWMnvElXJc22Khk2LnH88N','user','ak_3926f9664c5f7b5f','2023-01-07 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=31180;

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


