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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$0rMRo19B9tMxsezcaasMRIyzy8HXFlwldMd0fWipy1bwpwOFQ.Xmr','user','ak_738210fa5b7895c7','2023-05-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Xht4Sl0G.kMpgzqO3fRG6x.gnm2NvfZmfjysy7rlzltZBLxkgL3TX','admin','ak_5f3a7183cc1268c0','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$d6e45SG1R0d3vw.7FZPNFuFtMAZVS.l2tEGTf3PGKKGy50HwOA2LB','admin','ak_02fbd36256927b9b','2023-01-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$v6WAGC6zFaxMZHS3NGlPPOyegpOKOGVmME2KBXYKqGxFjr/kzHGOC','user','ak_80aa5a6a4714c3cf','2023-12-11 10:05:00',NULL);

