-- Host: db-master-2.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$XB1SYi6Otx78w.BpWbC4pEKsW226L4F4HqMwHr12N3UChpInjPrdK','admin','ak_5be87254c0493d4c','2023-10-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$epXVgQiMp1yJbD71n1sbRwFzVjlToDojcCBU8bTGFbAjPjTXUbuG1','user','ak_d40affd6727af308','2023-02-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$p36FJA0qNZ4uw2d77jnlzAvY0sM/dxzvixk9.LkWyoG4lrjY/mKr8','user','ak_463529216e166c47','2023-05-15 10:02:00',NULL);

