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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$sR8zTjN1P0Z6frOzc2m1S9UT3hl68r0W93BuxZtaZ.iOw62c0q7TI','user','ak_42948ad8d9d7c3eb','2023-07-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$HSY9BdqJen7K5EduxJEp69u8EimPwUDGhGmaY5V.0Jx5/Lz2lt/DE','admin','ak_c5374dc1f1d3b974','2023-02-02 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$ncmmBMBbUcBhxLV/3GDHNIM/m4srltCRWwNNCGVLL4hwtw1bCLzig','user','ak_e57aac5a14c80453','2023-01-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$7745io6c7zI6JeK1nz.lgd9WCinZBGV/jO0v868LijG.3e6NJ80a0','admin','ak_95ad4ea04f91144f','2023-05-06 10:00:00',NULL);

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

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

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


