-- Host: db-master-4.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=22239;

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$87bZJ80w1ohzF7ukVGcu9wXi/kvlRMhHmv/GOZdTGzhx1XzPZgyLy','user','ak_9678072698668465','2023-07-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$jsUwl6nK7QYDhZ244yULiHDf.N3WiyuYHbPEFRNui/eXNZ6waQuY5','user','ak_3eea7334d11ade15','2023-11-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$TdGCVEfQEw2v7NNjXmBnas3nxJDhKffBcuQ/89zkI5rZnobqeHFx0','admin','ak_d0639bb9955ad1c2','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$LkFQyM3Auueink53uXDMPIlm6F8bl4x3KD24JdJDMzusCx6NSUrOj','user','ak_956b83cee0ed94b9','2023-09-26 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$TNdeMnTwCiJfYyOzL9BVDvDA4iO8sCZaO3LFIyjbrzbQ8zUX5xOu0','user','ak_26e2fbc88a9e2e4b','2023-09-22 10:01:00',NULL);

