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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$DR9ftuQID448PAeDhai.8i5f2qqZkU9m4Fh1SOJwOiFv/HyhsgDDk','user','ak_45c0313abc26fb82','2023-03-13 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Pvf5FqH3cBJrn.KpvQeTM4lz/NohPnBnwtBKX0oGDcf1kOGXIsutF','user','ak_ddda0349db1862c3','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$iziu7DYpJoy5.AbnobK6xcR1YSKBmjtPkaD4BXQfGhAUfFXYWBv7y','admin','ak_97ce589e323b983e','2023-05-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gI76Ge0phWMhd.jxumMiBhksRxfMFv7VD8HDa64f8eF5aAY9XlPu8','user','ak_cdd33ff118382f11','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$D2246CNtgxFws/tISVqJ6xqMWi52OY.8Zdi8GD5Uf9Asf7la80c3x','user','ak_4a860dff0c636951','2023-12-12 10:02:00',NULL);

