-- Host: db-master-2.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=34823;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$HAu1iBR1j1EDqxAPCVYECrS2zN5/YLrSmVk5wEB5G5z..x/h6SCRR','user','ak_f918b017a4947461','2023-05-18 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$SiWHVZwnCZ8KTmHvrQFNBDdRSl4JGBv1KIu79K96XXFreBPQJB5uL','admin','ak_d6cfc29a76855052','2023-09-27 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$duMZBIog/9LdulOJqFNQLfWlxiuDdLBhe590HCEMDBvSq5MxBL4iF','admin','ak_c270cf0733f48f74','2023-11-21 10:17: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=14297;

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


