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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ows3WjlLJZPmB1PrLkpGMrDbevmPimCdGRt/ejVc.fEVQ.5si31fQ','admin','ak_2cecfe9624a1442d','2023-04-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$HY7I3BK1iH37eOV6/dKFY2ObHRpLEiqrbh.l2Swz7Ay7bhKND7d43','user','ak_9618c9af06f2d25d','2023-12-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$8jmU9QIpfWSWSHvgqaMBDu8vYuZRhmEuZcHfLKxNk.1QUkmwIO/H2','user','ak_6aa16aac93b075cf','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$IkCGGFZVxthFSdNfh7vJ7oW//d2y6Yn77Ti2iNs4xoKZtY8RMM9Uz','user','ak_d2f840b35a04ba71','2023-03-17 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$qxBr0MSUpNtPvQ3GCsawx93QrGEQOHGgEqVC28wBlHochMNC58z7D','user','ak_614d9d04c5de6e5d','2023-08-02 10:08:00',NULL);

