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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$E8j86P2FjAfoTNOePQtob7h4MrX6XuPrw3BJueU02dowFPTanETRk','user','ak_018735b7c37fd39c','2023-05-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$a9VVeJ7IQz7jkdsn0iO0CyU/KoNxB6QM9kfVAqbuXxFiBYk25kSvW','admin','ak_8a77c6c658267644','2023-12-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$1bHucI7Tg4shJwc7Os5J8zcZKHjJ4Z.Nvr/JfyINDN0liqwj/xZ.7','admin','ak_73248390c9ed0307','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$chUPDwZg4y6fn8LkXlX4pd2ChraP53hXh7BCnnjJWcrz2DlnQ2.ry','user','ak_c9ed811487062173','2023-10-26 10:12:00',NULL);

