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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$sDQHW.Fso7nDFqK/yjegKieH1jvUVTBBPlN7f8VfZezn2MoLtlcEW','admin','ak_bedf925113da60b2','2023-05-18 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$JSR15jV84DJ3zEWXRdkCD5KJvjBQbyXE3vj/40RZBcqPBhhPmqI2o','user','ak_8b2eba114860a8e7','2023-04-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$chlE1WCaIciheJKZt4ht7cjB22W1jP6dAekX6LnvOIN1gCpW91mIh','user','ak_948ed3f1d0fd17f5','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$TOG7/n.wNP24Rs6rQD.b/dvFgSsrkRC0Yq5QGvBvUo1IMfamEnrRP','admin','ak_1a70ab84d438a3ff','2023-11-05 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$cXWUZ2C1y2IxnRT8305rHPt6WDQ.Hzfb8chL.3e/Jiwl9Q3P6OKld','user','ak_93438ea50e58570a','2023-08-23 10:12: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=31825;

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


