-- Host: db-master-8.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=29043;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$KBSPjMfgfpo49T9oy8YYUD8IDR/KRlQQVzglJRNhfccU7euS.de2W','admin','ak_65209e43516dba00','2023-10-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$m24V8Klz/m9BpXYp9/Ds2ii5fAiVyLHfgdmd/Qzb9sgrvnJsAxsej','user','ak_6cf9be5f9af45795','2023-01-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$EaeQq/EG3ERbiCrwcOT0VtHOL7xcFef85IDUpYwbGjtpdZeNLvymO','user','ak_ff984c376673cb3c','2023-02-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$3X/bYAvLl2gNg664SpDtR222ek9Dqg066IERetqkCuDzHfW8K7Dz4','admin','ak_7d59c7ca8e506165','2023-07-23 10:08:00',NULL);

