-- Host: db-master-2.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$vpP3WVkHC5CO1pVNTvYpjm7sWABeSQbpqjt4YjHRGqO2ZdfP3lb/j','user','ak_e5e54ea7f36fb394','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Itk1VAersZo.z/15.Q8PUwz.iZHjgYqS3ehD8hf86vSBbL4qQiQSY','user','ak_091a8f22c08fb3b4','2023-08-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$z2bWUbEEX52k0uekrvC1JegDrHPMO86Wi82nsbX4/xOY.LUPzkoZl','user','ak_034ce19d799561d0','2023-01-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$3bxhg/fI60UT9DPtS57CltwpChVgv4anGRZiZJMtKSaaTcTwlHzsJ','admin','ak_b0108a77ee65373c','2023-05-26 10:04: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=3233;

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


