-- Host: db-master-1.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=16795;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$ESMlII9nYsCIHvLlF.TFoDSbmjR67T5YXU1dgFiGZvJHDLyl.8Ir7','admin','ak_f4936acf14d06700','2023-11-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$IoIb8cwqH3pL1DK99RV1./mzs/C/OWx1YGxpwSovgPDLudV7SJqPe','user','ak_b53ad65edbe92152','2023-05-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$RHu4rCwJFZWo6SmsGRXvjSBT.yAZthFEUKEmZ19MDp9jbrm3gle8e','user','ak_e163fe0169e7c159','2023-04-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$xbnsBbe0RNrlvAn.CuDW8YSwsoMMPpR3oCnrjepXYLUEFyyfRWZVJ','user','ak_0c7923de805cf0ce','2023-03-18 10:02:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16053;

--
-- Dumping data for table `sessions`
--


