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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$4N8Kq59eW5Kz48Gt7TvItUCgkyu46YUQX2GfSPxKg6zaPwTTuv3EJ','user','ak_61cc6df15073a400','2023-06-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$mzeY9PuaDIm43zwNIxhquian73r2EEbrqi52NY9hhs6M7uVW9tLdV','user','ak_48fb075a2ff215ea','2023-11-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$USUaaJxb.zWGw6OoKZ.YJEnvVFzfAWFKNcYD97V5r5oQdje2mwcwk','admin','ak_4754988fb1885974','2023-08-04 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$h3M1/2GcPueNKNJos1.sBPKYqLyeDbgVYCj96s6bjqThk107zbc1n','admin','ak_89add799df21b135','2023-07-08 10:23:00',NULL);

