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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$SOcomMVs1pcH7tVIEPGceJIv0kot8oK7FoWaRAaGBDHODIQM3RgV4','user','ak_f6d5d551206dba47','2023-06-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$yRHwHQRUDrolOrdyrJROB65OJCEtYeEKLpxZD4dpONrSc9gpg9dI0','user','ak_9584e16f26da3002','2023-02-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Jq.A.GztZEP1Y1M/9wHSiN4QEbmpj7Z5A6P9WmIosN3b.8uMrDgKa','admin','ak_a165187ee925e80b','2023-08-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$2XmXzjxnJhRb.h.U0tPNCe9FqPLkD54maF1NwbbK234kUi266ICFb','user','ak_cf7e05554dd8d7cb','2023-11-16 10:17: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=14075;

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


