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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$noN4wFpl8dUGMLwzTYuNS5Lwj0DXiVUMMXmw.X6Wdy//Bvbbd6OnF','user','ak_026ceb597dfb2ae5','2023-01-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$NoRIQ7Tr4ljyTnaxGKA0DtGDNMC1b/bjNZStWrEbhM03D/B7.CLA0','admin','ak_cb9d9a2fc2dafcb3','2023-01-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CN5c6Nj1n3saWXGDd.dwZSLif9Yx0DOzXv1nbE./Q9IennSGzw0rz','user','ak_7676cc70ab8d60db','2023-12-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$64eL2UsgkcEmY14/O8qvf2o.8ew7vVAWW6G0JNhoM8biQkgTdvoRJ','admin','ak_f106a392d7d3eb60','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$0pfLyeImJE4UydiCAydLJLEvjXTc0jttMcNP/PfxIKL6Q43Z9u3Wv','user','ak_49985f526780ed75','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$YCbNy6PlObZLKFbGAq.1IMWfqCbijx94dj2Qi6umMMnhhevNyp8P8','user','ak_996afebf9b1f7fd5','2023-08-10 10:17:00',NULL);

