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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$9AISM4mgLvipA.DnOnWGUV0t.JJL7xZ16fOE4Jsr9bvAXGDQefNhC','admin','ak_abb614fa1ac4778f','2023-08-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$SmxZp7vGhO0VHeNMSmPLMhD1bFqLXoIciG60Y/jSwC4OoOJg0vbj6','user','ak_6be237b5606019ba','2023-06-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$V1nr0mXOjBokRQPMuVMT7xXRofclJus1mVDT.IJ9yJcYgtRlD70lp','admin','ak_57a387cde192c686','2023-02-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$D8gWeJmTU08knar.gZZnpnPDsFjLk/W3kEc10H5k0pfuOP8oQpuv1','user','ak_d6798fb3d87e1e71','2023-01-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$zx1CHehMn1F18hGH1bNWv7ZE.y4Usivaph.0iiH/hw1y8N/m8UVcR','user','ak_9093505429622118','2023-01-21 10:06: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=38626;

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


