-- Host: db-master-3.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$I26Kv56BkTE7jAbpCCfzuPGHVdNrU9yNkNmzN7m2.YbKYlVkHTt2O','user','ak_b56bbf580b5241f4','2023-11-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Gn3YrczOe5ftx.MRP7XaSyh7kzq4himwm3fUV5uEjWyXlO/n0vcNX','admin','ak_26111195bac8d045','2023-10-07 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$8f3JI8HdFQwFSiSAzfyDybGzjtbkRUNAkQcFPUjbcwm/FfibnGIme','admin','ak_64beb9efed464836','2023-02-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$.bIQvgLJbjq/WAoEUE2vtN70QyE2opoNfJJObRFotVknZPN8sbF53','user','ak_9fb85cb7ded96b29','2023-07-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$jWcnobFOU.YCZceZQwOvFn6HVzLp7k1uYHAhlvxAi3V2MlqeEXTB6','admin','ak_59fc66239a469315','2023-06-07 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$C3mDDmIczc0w.fbz.jPBTTLTnCztCjPqatcMqiMgAkAzRWlKHU09c','user','ak_ecc6af62abf93255','2023-05-08 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@internal.io','$2b$12$LDQJKoP9O1IDysOrHKuEVR9bLche/.ERVvSXNT6ZlJkOH2KIyXFND','user','ak_388b031339a1b7e8','2023-08-14 10:21: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=49289;

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


