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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$eTR6KJqquEM81c7ytwxt1kyCX7lMptZHloBjJ81eRObwdturRNRxU','admin','ak_9bfa9a680f5847d0','2023-05-10 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ZcfbP1zaFAXgfHZjR1iMN.Z/rLuHNTXfkTzY.1F.dbgUvlNQR2wnY','user','ak_e6871b2120b6ebd1','2023-07-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ZKBXH1feajhZB8LmUE/vnrcwgC3hk2aqBmzHxsBXQOwskAIucL5Cl','admin','ak_d3712e399e58dba4','2023-12-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$UvPmhJ/ycCaymsKcJafWEG2p0zkK5GLwSjfSX4T9j4TXc4l8tx8c3','admin','ak_f54c176d805ffe3a','2023-05-01 10:13: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=19986;

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


