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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$rIckJLmAqXLe1ssV2UNbRAgBFvYnLTflQpbsw2fmxVtQmj09a9/xc','user','ak_3d0aec16eb8d1f6a','2023-09-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$1Lg6htkjvKAS2zQTV.GjjhmNS6XJSjapwnEHuTQOiGg.uWnS3G26l','admin','ak_745c6b473d44027f','2023-11-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$ZE3hZJr86geMjk/xAEqsFAsM8cIFseK4orWTQr2zoye1KFEykNf03','user','ak_c518350b99283883','2023-06-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$kJCQPPZ3.yTtHKjeeju3WERE4JfnlsAL63oCiL/cGGiodln8IEpJG','admin','ak_730aa758d51ba746','2023-11-08 10:05: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=40687;

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


