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


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

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$eCb1yDsachuCHN2skDGClfVm3lP6.C5hCI7addzL0nqF317qwnXK6','user','ak_8521b0250fab9050','2023-01-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Qm6/JYKGJwjxdmhb.w4r.M30Tg6Exdk1ypOxn.S6YXQ0EsLpnPCA3','user','ak_c53b39d8d1052a56','2023-09-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$do/OB6ko3DKaA9d6JG8FXF6JBIqBV8ae8GEzH6m3.8/c3Glsx2qwB','user','ak_5f0cb14269a5ecf5','2023-05-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$EULX0oXWumkv5UypUMtZ2RsYiqLNkhVsNdgNhrI4t5YZJD2dhhTgt','user','ak_ffe33dcf01e1cf61','2023-07-26 10:11: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=38422;

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


