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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$BgwN6lHQjmp0TvAmkTP1MOWYEDXvKV9BgDwmSA2vyqVXMAiiRpfVc','user','ak_34510b424c0ba473','2023-12-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$EUsyHlH0Fut/fBYhTiWhMGwQ6n1ScH1IIcpxO0toMFZOL/uOHXhKl','admin','ak_dd27a8303b69b2b1','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$98rvXcNrOXmeGoDrHORaRgABpRWktPLht/8yx7JjdeQF2PvM3l/H0','user','ak_d8cb7bf720165f21','2023-01-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$6OqBenRSBFj8Vf3xnos1d5pl48rf55NA52lAQb2iOsNr7LJVCGmvW','user','ak_3e48c72c6d592089','2023-03-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$LZeQIbWdpkM50u2B9IylNo6ciSJ2zAmuqoZ4OlmEZaYx7PGW3zTjA','admin','ak_ebec87d11fdab663','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$4/kyBLIHWUBhGcD2up0.4TdQfHOc0FAcNnLMnM7wbzcZwSdo8kGnp','admin','ak_42e7c2f98119f03b','2023-03-04 10:23: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=5956;

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


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

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


