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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Y8i7/Tuj94KpOlfp.zsRvWaQoVKr6w6O0U1Wl/sqZNY7m8MQQseJR','admin','ak_fa7e3b6d59cf7173','2023-07-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Nnpn90l/iaQkXxkUN4Hdba/pWULlDGnCk7LyLZHhn2EvfDMZprlnL','user','ak_8838e3a2d34428ae','2023-08-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$xWwk9mxxTxEtDYmdlbKLVVm2V8ptkU58Pshw7VvM1Yclq0hDdcArS','admin','ak_8dd960a3fac9c1a0','2023-12-05 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$6KvgNcgTODcn/m/14zYIIPdNZKhtbXwQfa49TLpRxsQO7i7884WQf','user','ak_f60ec44aa636a677','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$PeXgIgYUCohe.VKOsduBLevmHGNCx4qbcElAofIugr1WxtHJbK24R','admin','ak_9ed2ddbae1f8b654','2023-04-22 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$HN7e.qzlfSzuJemJCTKRd2YAt3POBM/IQj9U2D5EJfzHgWpOFc4J4','user','ak_ff22b8ffa19ab18f','2023-08-16 10:07:00',NULL);

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

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


