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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$VkVTPjkRvQOvyEjvYFZlAOSZHu2dP4/1c8yR.oYZzVojrNBlwCyJq','user','ak_f8ed70ba971b087f','2023-03-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$amab60bXd.Fv8OnpoTtzXD7u528KYmVun3WrVYtBmgmun4zw.CjJo','user','ak_9faca902cc948628','2023-09-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$QDbEfbgkkD5j5r.kQfMgT/yerwCoflo6rzDrx109kNZFiPBjIZGE8','admin','ak_dd6845ae82058e9d','2023-10-23 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$zJFlg6JBLB2Nb9R9XcYL6k8/Ddq2tka1aJy.BYj0yr5Pb8W1MUJGw','admin','ak_60c9dab206dfc81c','2023-05-25 10:18: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=5789;

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


