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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$OryKhK.SsI9Ogw3IkNTo.Q5W5g88NSNYnijWAQC17azd7d.dRSxxd','admin','ak_0043514fb9a76ef6','2023-06-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$pd/DOuQzInO19BEgo5BAEwt4QH0VvrCe9rxNkP1sjL.MuEbbeGFJu','user','ak_cf171301a46c80d4','2023-02-02 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$bWY1mrciQJd9ReDVC34GCxbzPuw/XgS8B6HSAgu8jx3zkoppn9rrJ','user','ak_6a3f4548d70d992f','2023-07-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gms68Xu/dU6VO7sqi9TtMAUz4BL2hkC.NPvNE6twCrnX2r4wElpXa','user','ak_5e399e65a3d04619','2023-09-06 10:20:00',NULL);

