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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$jA6c4wHebbwlv..J0/adwSOzs1UheUnGGcx.0t2FmWBKrYpxDg8rp','user','ak_1d5324bb83a587cb','2023-08-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ozZf3WmMzTnSORdBMmhzKf5CQe5mAEo1DWSXdW4KXkjjer3X22F8t','admin','ak_398ab6898b82ac2c','2023-03-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$IdEYv99S4A66qKZHVct2E7j3XCofqL0nFqW45oPtbShX3TGv/Zc8L','admin','ak_6573a6fe959443c2','2023-12-22 10:22: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=6973;

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


