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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$jAGF3c0EFKOo8p0zwD/dCSEAraWZdrplw.hmUOuEdaPw5U57f7wn2','admin','ak_d8cce0f0c7784a45','2023-10-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$m6C8w6OPlRSXrrWMNOtmYdzasgFLNGef/OPOu7teGU/hw/8FTvRvw','admin','ak_b850d3e95a63b4b4','2023-09-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$2PxMF2/Ol3Mlrgpvt0qkN2k48SkuPbsJUVV7ECGe2Sg4epNMyU.1C','user','ak_6e06ca92dacedc4c','2023-07-21 10:20:00',NULL);

