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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$UMaAfC5pVjho3Q9dA9rZIavwl1bEpfqStECq5UuO69YST1S/pSfCL','user','ak_e4f5a3adea4273b7','2023-02-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$lxpPPMbWugV5rAcCkgsII8Fw5vAHB43pXUb9F6Mm/HB3eKb3rREjs','admin','ak_5b8ee4905b21fed4','2023-05-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$5ldAxEpw.ra5fUoIFxWh7qf1/thHVfUG7TIzXtie/cuQWPYeJk8Ui','user','ak_fb31d18dfbe363f6','2023-03-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$CD47GAd6D9zcO32q91S7/s/SmGTXTq.Tl9s2dUkeCgRIYzg4I1lQU','admin','ak_1fc3b12414c2822a','2023-12-15 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$jjkgC2f2r61V7C22bCLtR1HxkQUHUs8vjw9HOsDFkztpmeDqnnvyR','user','ak_72fc0feacb5cefba','2023-08-13 10:18:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24242;

--
-- Dumping data for table `sessions`
--


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

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


