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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fvQi5hQGLov7Q2Il74hJhyIbOzAbbCwUKlr1hgvnM4.phQ2bLL7eV','user','ak_83890f63eb12e5e6','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$rxBEfi3hS3Gucs.0KP6lRAjJcqotNuKmHGbNdvA1f6A5mYTqFzCAk','user','ak_3273dda4ad3cda9f','2023-06-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$F9A3ULOYm3CA/X.GhHwp3STAvC08URVr/OAT6WiXojzXir19kkbdi','user','ak_d8f9e4c8cbb92744','2023-11-23 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$JMelPp00XGDs0UsEWi.QxY5rD8fFkAta8yqErrTQVX9UjlZHjr5dD','user','ak_9cc712a048d3e02f','2023-01-21 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$8RSCYyohd8G1jIWljQLkcH5HpaO/Rtn2yylxmNfzuyL7TaQsJn2d.','user','ak_f627c91cae00a833','2023-01-22 10:00: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=6358;

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

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


