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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$JEDLpOwl13vmx8JFjXLPeh1kH5xgBGgjA./zW2/RvhDBfxEtaNrX.','admin','ak_a87a09c3058a5e34','2023-03-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Sq/hgGwrlWKsz.E4H4/n/tFFfJ3kXyU3rae.V69VLXYtGIYSKJXam','admin','ak_deaf4f5440c6d9c4','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$xz5NUj9ADc3NmGKSvrS7kYeSh3mCedH5AUp8HfBc7JiLLNTcPA.l.','admin','ak_6a2785dc62be413b','2023-10-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$FnX/JUSARoqt//FqVcj22xDYRhNw1q.5Ki9.CK.1OPoXAwi.4zpGS','user','ak_8d33dc514a7b1590','2023-12-09 10:07: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=8678;

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

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


