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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$erZZ//P1U5hbPnJdudY314lBD42IUwqXI1dvBncccas9wRfOYWrVG','user','ak_14b798ad351beae9','2023-11-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$mN2fLQCiE.G59H2ZxGlKQT3iQ.dYqoZWr4rqz22RsqFV0sTugUsxX','user','ak_aa4eb3d97bfca7d5','2023-10-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$nh8jrLjU07Z9ce9t8p8/AigJjTfihzTLStxD750R4innSXpZ1whCf','user','ak_fa553234855ad4e4','2023-05-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$dcal9UoqxtyP8mv0s4djcF5SDvommdeLh49.v5ltIJr0EkeQRa3yr','user','ak_bc2f573c4ee2293b','2023-03-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$z.y/3MrZG1pgdK5dJtHbACWUb4IFT0cL2QbdEqaznBzS5loGFltex','user','ak_cf9d5f96c54874d3','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$L6IqyC5dE1TzJEiW6r/gTN3IrnONprpBF4k0Z7XNsiCOUo8NnFBXr','admin','ak_994c3e0086a2b032','2023-02-28 10:15:00',NULL);

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

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


