-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$7Cw1riUwF.wxDSGXx6cxprgnRHoQPLTI./BTpjsFtXBUuQtW0ycLZ','admin','ak_be2935fd126cabad','2023-09-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$vnR9aT4sJhPhGeIl8GGoX8cCWrnu64iAqkLWtNP/T/6q5U8jSugj0','user','ak_427c8b7b2225d86d','2023-11-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ZyKi/horzqNsEAZu4Sqipk2hEQ4xaDIN.w34iKerQdr88Elc0JSdj','user','ak_011d86fc898aa716','2023-03-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$mQa0Iio3XTVF14x7AenruUTtcOb5YiNWYoYSWB7sW14znQaetZ/Rr','user','ak_159fac491848b2c5','2023-03-15 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$KBunw1lTfyo6jfS864pAxD30ReN7SBq3qwhIP4dra/EQTnO.dp6Ly','user','ak_09e13e45444eeeb1','2023-10-11 10:19: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=35277;

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


