-- Host: db-master-3.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=21058;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Rw9FaecuYUlSyZCr1lx/I6Fl5De.VfZjPiIrkg4GFd/OemUfpb5Zc','user','ak_d07d1ebf3729cd55','2023-01-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$XSdb5SS5cb8hKIAKxJQAxukCqE92.XZL.OztZkumYqyeXWgR67zTR','user','ak_d1c1a261963797ee','2023-01-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$2K.aEP2/cWEiv1jOQe4y474SCzINxT1OkNMHFCJ9V0Y6vQC4OC0GF','user','ak_8d15c76cf74bdbb1','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$xGMzbPbJsnDHalqXN/uqJ4KGI7VVtTlwvxlxJi6ZDLMrpKgTn/39g','admin','ak_b1307cf0e120a655','2023-02-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Bq4fCWzV2YDetzMqS.SOPR3soAzdIvMXjJKWBlvxFOKKvl5khemGN','admin','ak_e4e2f38a492df3ab','2023-07-24 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$db56VOmxcZZzm2nuRUaTzBhk1pvLjGFJjiwgj7Lg52HGHuZKg65wO','user','ak_bed3852e02cff4b5','2023-02-18 10:22: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=43604;

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


