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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$YqlV/vuYmIBkGsosq0Mc779YP3iB/rJNqv3ggmxN7qQ/NgibDwP0Y','admin','ak_bec2aea2125e4630','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ZMNlIZhbABNfmmzOCaIij6lytpmLC0KGVEi8a9/5NjgFlYYIwpEwu','user','ak_7802d1fb3cb9bef8','2023-02-26 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$MU/esdw6AlnKE3By5jFW4FkWTYyifSyj1ampX9ibaYcNkkqZGDrCT','user','ak_66a52276ec52680b','2023-06-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$7pYF8ycACDB/crEZLE5ecqqrEFUUUoeRDPkhvW4TPodMLBJ.1W/6C','admin','ak_ec64d85f73720a27','2023-03-27 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$LtaED3V7cpkqe0ZzdIENSBV4T/2KiaY0.1bqyLCokR1tY8WBNXOZ8','user','ak_c0b987d944c36d6b','2023-08-25 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$0M9jZAyn3KZBa1mqv0yjWcgSqrGie8xzhggQJb45bhQNgIBYPvP1p','user','ak_5575a31f0052dd27','2023-11-01 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$GmhgnGQgrlRjvB.reOvOFygW9ez4UDWnvUFdMucj0DnVuTMTvEYU/','user','ak_4f4e41c7e99dbc6e','2023-04-08 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=9289;

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


