-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$qP1q6JuIBBUfAmsr5CZM6BnHF31ONGtK13PgBfTXVO4kSEWRP2C3A','user','ak_48db4acf0543f701','2023-06-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$5x02Bs.oWDrzKNknHfWBmXgxooFmIiV0rLdUZnk9JXxTwDam0fY1H','admin','ak_1c978cfab6ec8783','2023-12-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$StrAeRpR9Dv3pcSB2nJIu40PeyGM7ohhbpiFHLlNKT7Tu.i4pdsDG','user','ak_dafe97a040f1ee30','2023-06-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$fy88YOfXFVTZPd9kAyJel8yf2OzrM9p9MV5x90Z425.eIIxxRQ.IA','admin','ak_682d949a85958daf','2023-05-14 10:07:00',NULL);

