-- Host: db-master-0.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=5701;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$1ER4BpMtv2RSJeyvdRlCrgNzGNESQtmzdGF91MPVp1.Ekz1E2W9YM','admin','ak_d9e9051d390efa3f','2023-06-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$1AGyAQmIx/mu0CQk9loxEm0Mu/Zl3NdIlfKPQ7SaM2gtWBdo50dhq','user','ak_6307624e6ac251ed','2023-06-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$.uMEvKA/fyCGrTuU9tQ.wHOFO88ctXsdNwV5JbqAPbpWJ9LrYMeNy','admin','ak_a842a5806f5a03fb','2023-01-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$/ke1CYSFwVIUv0IDl/xBcOwpAv5KSjVUW7leqSXRQTk/0FZiCYuqw','admin','ak_7ccf0e7f16aff08b','2023-12-28 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$k5lAbz2S3H5dt9SqmibAffAcY//3EhtuzbrXGrlETCHdAJaK3/UBm','user','ak_a204894364f941c2','2023-05-22 10:09: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=45219;

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


