-- Host: db-master-3.internal    Database: webapp_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=41994;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$ZGf9/8JgZFwY/52zXucSaSPT806Mq0UWWAyL8QTX13NDWmQ.Y8LOM','user','ak_2fc482115b9df4bd','2023-05-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$5iQoCFeB/QburMhb526XCpqaiXPTzGEC1uGdDitZKTy/PM9ZsZMl0','user','ak_611e69d578a79120','2023-05-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$z3zsu2yv/oL41TDsozL8zIrXXblEs7bNAtzqS6d6F9TJ99UymbMMt','user','ak_9f803f82e463585b','2023-10-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$IghEg4yl/QkcOAOYxJcUbPt/fk25ulA834LGoGOy.fwH5l/QZu7z3','user','ak_97c5e59fa99efd26','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$TTXbPi8KeZgbxgk3XE1.8S62F336xeDHfpUy6BQA4gjW32r0ORcD4','user','ak_68ee7349af766920','2023-01-28 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$1h9BS/C0qDEqum5TXgI1ocm7ZxIHKGa3LZw9vUp4u.2GgKM9E1BLv','admin','ak_931e2f132514f356','2023-07-25 10:16: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=17094;

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

--
-- Dumping data for table `audit_log`
--


