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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$is4JpvgQtb8DJvsKnVRwLl3OZBoQsAAhpldZyNjgmiLTdFIHmYBu3','user','ak_23dbb66e42453569','2023-09-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$KZ337eg7A1n2LA1rm1oA.T7tB8ufRZEjIzIaVGWfIyRkl5P6UB9xb','user','ak_46378ed5ac05a718','2023-11-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$LGCodg7HwuI7u0Ek2ri8CV.mePzHUv6ANvetriRXsEIHbigaQDWdt','admin','ak_77f05c365db40360','2023-04-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$YFdjRMP/FX9t1gu08K1ULGMnAMzpkj7orHUUm8QYP/JQ3ohx00qVb','user','ak_f67a43a5f6d2fb81','2023-01-25 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=9463;

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


