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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$wM5H1XOh8eow5btyY.drDbhOHuIatPjKEWZ1e7Id4y9IW18jVYtlU','user','ak_44735f756982a9ce','2023-09-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$xPdLlX/auDfJg5k6obbeviqfrTvkZQwX8QWCR4SfDoI8kaRI53L/m','user','ak_a65b1a096701b604','2023-01-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$jOM4cQqzqZSrzjwcP6g/8GcABTAa/LvCsXHrKtsCBx3uZA04i3BPy','user','ak_4a525d3779f0b087','2023-01-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$2/Ui09ZwFFjIpUITPxGW3/I6tstTE2cZFNjkkmna9.JWFpXrXPAaQ','user','ak_90f1495310d693ab','2023-06-23 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$41G1Rw0Yo/XeJ2KtmguVceBdKtazu0Fgd1xFtu0fCVfAKMu8udWfV','user','ak_059d378372cbf2bb','2023-11-18 10:08: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=47531;

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


