-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.jLU8HFFnJLaJj7RsVW7uFpan1BjNwwZNhFPH/shYcbkUP3faeth9','user','ak_b89ce8221055f1ac','2023-02-10 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$wc.v3EEVudxp9kPa2zjdi6OxOL2Rkx9oEYlnyA7nwGqSFy3IRIvT6','user','ak_278837fd7fcf402e','2023-10-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$q6s0z9OhW8ySkZ58cBPVB1kSJ1pXBj.dn/doHLooBi/DhaEQuwRNx','user','ak_d9e3fca15b6cd690','2023-10-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$/nWZ4pB6KoR2IYwvAwMyV6UP3OwPugL20tM6B4rJyMok3ZcaVgNXg','user','ak_4020ab50477cde6d','2023-06-13 10:10: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=22573;

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


