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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$p806dM5BULC0izfoATvWCIkNcAsD0IMedY0.qh0cBD4GbbBOmBHHU','user','ak_4eb2cbdda9e3cefb','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$U8Z0RPusB0L.IE7gx0el/tETLN.Z1wexOJ4TBENY14gHLazwDwnD6','user','ak_84c9ef79ccf19b5e','2023-02-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$l9.WjR2amgec3VsZsakigEJ3ioCR1Jp4y8VZhq9KSKwfCSGi9XrvR','admin','ak_d6d9d8f9abd671c5','2023-01-01 10:04: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=31000;

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


