-- Host: db-master-6.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$zIpMauJtKpxhHVn/xyK4yUGcbJOBgAEnPbgbGmF4pC9DperC3A4ub','user','ak_de93a6b9d4a20217','2023-04-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$PPkDDR8Bccaa9HRjMCujwlPteKIHFmT8Vphh3lXtPBIYcnmg710Ti','user','ak_1bbdd53ba81af23d','2023-09-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$h5jtlh32zhgyecv9WhawAB8ZlaRY7EtxDK1N9tGNfvvW2uiyRDa7X','admin','ak_abfb3e0090401e15','2023-03-09 10:03:00',NULL);

