-- Host: db-master-2.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=9675;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ciStivPuFJdUK.Slm2XghiaXuPaZ38R3LslUfsku/ZxxYL/MmbAEZ','user','ak_154c7e73dfa78bd8','2023-03-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$9o97vpw2MG/FyQIhulPGB/J6mhbOx9MhGzewabqKsyTW4qHiJbq3n','user','ak_66e03b0cf2d78a7b','2023-02-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$4ob3oayjFTtVsYCvfm3F6viqz5TZDqfFJnQJAQK4Y1cQaOVOany/I','user','ak_6b935938dd0ecae0','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$b/5XgwlCIzUadeqzOEGIoYd.xb2OVB3HfEOM3J38hrZPCJlAO7Wyi','user','ak_c8e424c5ff4d301a','2023-05-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$kZqcUR6rIkN0JN8hLe9vty7pnx9Uh2Wc9LnMkVyYoSsCKlL3tzA6s','admin','ak_8d06c395080f5b28','2023-04-24 10:01: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=7912;

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


