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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$71rcK9fKvZm2RBrWcgYqdr2f4gcNmBHHRb8An/c/iNwuPiuF8KWzE','admin','ak_08efd5a5cf0c3011','2023-11-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$dCp/Rc5wxtwb04s.j87FkbPyCdQOj0rYpYgeKZB1SfQzwcm3I6J5K','admin','ak_b2f6d13315d54540','2023-09-01 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$3bpwDh2UoQVZCbTzl0RLoeEtU2GgDwxig5BlZ0v9zlz5BGQ7JWm17','admin','ak_7572f761ad681003','2023-07-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$WH2EILU9M.PWzomcZuEr2DPGKVK7m2KRwd7.PPfz7/fDcqK.vAuJ2','admin','ak_ebc9f5e209a95a1a','2023-02-25 10:16: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=24186;

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

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


