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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Tf2PmoHDM9xc6P/ErcvaGTz5wDo4yl1RTU7l6suoVuRZ0aUSn0/Iu','admin','ak_07fb82b48ef4c4c3','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$6eK9X06ZUbmDV8bQkdD6Hn4MAjJpLtr8GIyPrDlEtd7xWDMHigV.i','admin','ak_e425f758be2c2f69','2023-11-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$mDxtAE3wGeb84NerpLl0SYMp1eHM9g1APdWGZwWAx/C1xEjllUg6T','admin','ak_aa76da344327a270','2023-09-06 10:11: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=15287;

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


