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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$6AV.ui13LCTEN.2PgqEyPkPLBnUNDawdJi9Kk7NcYDv.LnZRwAHnP','user','ak_14d1dcfff4b8eca0','2023-09-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Ci6xS4FRTMCrG8b2GAS.BDHFapkyWTsEv3l7wvWsMBcfGdn/dakdr','user','ak_8957d9fce6953259','2023-09-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$1KR9Lq2dq3KUnuKRQOGbrFOFe.59foRTEvbnY3i.HjYRlpZQ5YBOp','admin','ak_1176ad0d9436fed6','2023-10-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$.4JmQMXq2pPlspSviLrQ/iorAPR01LSZIb8Ffy5JvsSiGC5nYjloQ','user','ak_76f545d98889b8ec','2023-05-14 10:17: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=32417;

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


