-- Host: db-master-3.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=25276;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$q2Ei0r/j.2xuV8.Z7sd9QAYGPhpDLakvxsNi.dQgEr0g24DySFoWL','user','ak_226f66b05df8cffa','2023-11-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XbA3jKLDxxo/r6stIzOgNlx3.k8AhF/c7ozQXSqM9RpkCk2hY/gaM','user','ak_52e0ab8c4ad90399','2023-11-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Zq2wSxuG.pO5soLJOuHyfeM3wK.tgxvcKxCMkgmv/jWahoHBKBMwz','user','ak_b095899e4ecb40d6','2023-07-03 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$.VxMgjkATdCJUcBZk0G3Emo6PeMdb6u.xSh2eZnNB9Q.XI5.VSkLh','admin','ak_97c9492a01c20f2a','2023-09-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$/vJvqx7RkitC02jU7mpGcmZq6sy/klPpBu.z/zDCi1aIwv2bQudXJ','admin','ak_0feb48570b0e960b','2023-07-01 10:16:00',NULL);

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

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

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


