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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$KY2GGfnJRlht8WzxPqfYsVHsAsQwr3043SmWT16RWbbkAO7WRO7p6','user','ak_afd4567b9514c112','2023-12-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$RdH93HOq6OyUw09fU59EC3LnWLR4v9jLJkyqWylWygRPY4zrkAG.e','admin','ak_ce86e0d7f5bedad6','2023-07-16 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$qgJMA71KE5v7h3Y4ar9HlDbCLQNMTcq6ceIlHlDOA7at6uUNc2eYl','user','ak_336023a99cdbc6cc','2023-07-28 10:02: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=17878;

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


