-- Host: db-master-5.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=43335;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ncWYjt.1LXVa7yB.hP6fkDtXUk5SJUjVjs9fV4bWUNbLdkjY5SPC6','user','ak_aa7d166bb628156a','2023-10-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$/OYl0xQ.X2TIiSjaokuaJY90ZgjAibZlNymRTXWKZRq0nDa4h9fRZ','user','ak_9ab7e13afdfe657d','2023-07-11 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$zQTeACs7r491TuXbfx1eg9.CiZdbneGCDAGdXX619aFNru70ibtlB','user','ak_e1d88a77b1d4bcdf','2023-11-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$1emsS.LOmUey9qe6Jp/aPfkqwbBQJlMCDPTZd/kj2PLpQhq3vSFFJ','user','ak_db43b7459cb026da','2023-04-03 10:20:00',NULL);

