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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$AbDCD2jGyOXyu6DobAm0dvZYobutgc2n6pwSAx5ir7PVircK68y.u','admin','ak_dfa8379ea98dd726','2023-03-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$bnCQGqw69UIXTDgTn9KmpPecRO5CLXoC4OpBHzwa0wiIgTClSgLIc','user','ak_b2ecb56da6ab80bf','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$IWbKkoGs2MA4hXJUwCsB0Hn1v8MA1C65OOx05pMFp8Mbcr/V0Cb6h','admin','ak_7f5cecb85d83c069','2023-10-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$JincNs.IqC9H1ecZrVf7o55524KXl7EMGs9mKXSvtrCiGUUAbaEoq','admin','ak_b1ff770afe564974','2023-02-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$/TuoHHL7RYJi2v/IuEEmHloTdpajuOJljCQJ6Ib2rGV1bOPAanMrO','admin','ak_4d47d91ad10aae63','2023-04-15 10:10: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=26032;

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


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

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


