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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$9qgIhNj3koXtJF0uK2AS9HS104ZOdOBT49AOsqrmUZSUrI5HbfrbN','admin','ak_7f8d9950c6883d37','2023-10-16 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$oBWvQqlk.UWXmhVSCyhAR9M./pVod./RzzpvYpveigEXnCvwn3JU5','user','ak_df4d9fac59df3689','2023-08-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$3m6IRXq8n9cEF5Lr1/sg4.ypoQK5R9EC6LrqeVkyJ9VgMSqA4jB7e','user','ak_a2a2eee62a1db1f4','2023-01-04 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$jlZvpSAiX.6Zr4pOZBNkFAaV5HsUfQtZFtEEw49BkZMxkfvVL1SR7','user','ak_741e37a74ba924cb','2023-12-25 10:17: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=49583;

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


