-- Host: db-master-5.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=24561;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$3DuVW/d2WZXgzHXEp1oVFiotToY11.A/7JI0Snwdjfg0W88GxXsYW','user','ak_562f29e63de6305a','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$2KpQP45UrZk/01gqDQJbU5hrvPEJ.bSrQ3Niq7JN6yE.g11Jv3EsQ','admin','ak_5a15adce586a3ce0','2023-09-09 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$DU0SeAPQ8pYnLr0ywBkC7jiHRF.i5PfCkJkOzVY4mr6D5m0oWw2cI','admin','ak_035f7801486797dc','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$9WCTmq.45.SVJKsZqoq/3RuISBWb/fJla.SH785XpGRtNd08B/M.n','admin','ak_4eaada21a7536638','2023-01-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$KI6CgdQU0lr8J14Ghq95d18rmOeiSKuHIALUa.3A7aalSmtEQ4F7a','admin','ak_69c88999232d2f0b','2023-01-13 10:10: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=39369;

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

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


