-- Host: db-master-6.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$aOTGYb.IWQNk1D4fHBkmxWN8UkilIR1vqeG7KQ0Kst1IPL3f/TCHf','admin','ak_df2928770ad3ffba','2023-09-02 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$JycJCmjjaTE1zI.z731uvNa66Sj9VovwRXtFiNRdNMntd/pUsBvBC','admin','ak_51798ff2764b12e0','2023-04-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$EZ9HvZcMTPR0pvL0nMmSfEmkfktNC.ith6YOMMb3LAtz1JvhJG5S5','user','ak_d0e79045769357bd','2023-01-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$mY3PtqqJQYfcaRwkuuw.of6FF9YQBqg0pCTQ3kjLRmO.1g7RzwXxo','admin','ak_0e1732fc5fd54206','2023-06-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$bpKxuvd0jqGNzhRHJflOatTctDx62r60145Yop.9QktwPEMJNdZT0','user','ak_4836dc770aae164e','2023-08-26 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$g9A2Sy88Enn7K28EhRtQLeoZjtc1y6UpzzSGziM7U2DB8SSqFCN0v','user','ak_01f0b166b16bcbba','2023-04-10 10:12:00',NULL);

