-- Host: db-master-5.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$zcwDXs9B6dHiCqfD9ssNW3gxASWNiKId7nNRg/uLvRMOd/nf52ADF','user','ak_7fc7230d8e5b5146','2023-07-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$R.V1uXetHcOoYdyZqBOATyaXMOnxi03u.gFlDX3jZQ.koOyDq1Bfk','user','ak_6fabfec84ce30220','2023-10-16 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$2gjTxiHqFkElZpN5vKioXzXB7ZV6yz.TsIHyviwYMsJoMm0dayIbR','user','ak_1a01f6c8ceee779e','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$4X13GUDg8ymjWqAcyc4SNZ3t35fYAwvSDToyRjrzc0TsYt0LwhUNR','user','ak_cffda79203ae221f','2023-05-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$OYJSytnTD/nRNYCEnjdk3WOw4PDqCWrfxR6GW7Xt4h4OWOLP0pg4f','user','ak_4cbd3806104cd389','2023-08-07 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$rfNZntyPIF7AWEIUgJSi8k3i4d7v37peShQPg4kEfpXGcAkLxhNvd','admin','ak_6f9dc7c9a2c4ad90','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$WjcoiqNG94MLmSAepsP.Rr3IvB0l/EZ8sEV0HC9YuBlNBvmn8/nx9','admin','ak_acc960fdc1aa7462','2023-07-27 10:18:00',NULL);

