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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$u5gd9KNottY4sVtdWRNrWFUdWvrGkBZOKfjTePTcmbq4sYJvlwxxO','user','ak_7d5fd3babb59c2a8','2023-09-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$3d1gxHno4/xWwa6ur2GFWnLRFOynmVW9Kh92hFG4AfUsZT1UTJ7iM','admin','ak_b5e926b30b8d321e','2023-05-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$L59aTdwZeRIoh4ppDZzGwaL2LFnEnO4yHsGQy8zVDnp0lbVA7fpNt','user','ak_1f032915f126acdd','2023-12-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$pYMeO.bGkNkO3xOSj3FtMfhJLaTOuArsdYCEA//3NY59bToofADvw','admin','ak_634bb3f6dab1b217','2023-10-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$bKj.hjnhuZvxtKa8N8wyUF0/uBOXLddAUYsyEBftuxl6BBZI.1E52','user','ak_58a5c2478be5ed93','2023-07-21 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$5ywkLLKvsihk7yTTpgdMWwnUjzNLcNpf8bbilB2nOsku1we6b5Gti','admin','ak_dbc98e635b16671e','2023-06-09 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$L8kZ0Imwc2IFFQAbwejbdrkysic804LkjRZqP5Qq4kmLH/fCHpToY','admin','ak_4255a795ef001dd6','2023-04-12 10:07: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=9015;

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

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


