-- Host: db-master-2.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=4841;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$rer4aW6TRRTcVzkV0XkLAFAuIPwTZ8NAFqujTD8HoqpzVivy4J4s2','user','ak_e6b6aca4f15a9615','2023-03-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$f1KoySv4ttg4kAchg8Pne3AF8KYWOByulJIfCCzjTC5uXt6K1bIGY','admin','ak_f53d34dbbdcdb1c2','2023-04-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$00lnxdxYRwZND9i0sumdIg9DT9f/dgUBUDw7LMOp9Vw4iePyRKMtt','user','ak_65cd6d9989965dfe','2023-03-18 10:12: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=19789;

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


