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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=41005;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$GmgzlTF/.7kl.Wdv.NvMiRjrhTcHbtzw4jNhisFqwhi/je88ZouCD','user','ak_3fec17d92401ac38','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$co5xA4trFhsrTNbpiRQ1WY2H18zmiWZATu/2U/SOrPUw6Ym0hcimL','admin','ak_265b2074924a4397','2023-04-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$MebMrmbo5ByKNHZpt6JJkROD7pVAkn4I5RgcwYuflaeKre9dkjBzz','user','ak_46b76348e8fac563','2023-03-04 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Le36UmSmJ6vhutzsIWf0ihsxgnko3d9vIVmxPN7Wtu0x4xWPh2a0L','user','ak_064487d97c56ba7c','2023-12-22 10:05: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=47921;

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


