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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$qiq.yRg8mdHh1GcCV8KWCG76V5tM2n3LlCqy/.j2SYuwgruh8Eead','user','ak_c1c89f0d442e72ce','2023-02-28 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$SoxrZG0uSC.TokiMyliqAvr36zvOGUj7.iW0CDLg.20mgyUgeUz2p','user','ak_009181dbe313808d','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$ub7wvIYhP1LZUJd7wzdkEoG5kOKK88yIMK0Va/9Fsz6MHGmMav/AE','admin','ak_f12fc1a2befa2a24','2023-01-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$23qa34kx9OqANCgqScgthUkjlMHV5jieyAmrF4k8pldWI5fqO6Sh1','user','ak_127982ccd816cd34','2023-09-12 10:05: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=19813;

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

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


